fix: Eth JSON-RPC API: return empty bloom on every block.
This commit is contained in:
parent
ec667d49f4
commit
c474aeee5e
@ -118,7 +118,7 @@ type EthBlock struct {
|
|||||||
StateRoot EthHash `json:"stateRoot"`
|
StateRoot EthHash `json:"stateRoot"`
|
||||||
TransactionsRoot EthHash `json:"transactionsRoot"`
|
TransactionsRoot EthHash `json:"transactionsRoot"`
|
||||||
ReceiptsRoot EthHash `json:"receiptsRoot"`
|
ReceiptsRoot EthHash `json:"receiptsRoot"`
|
||||||
// TODO: include LogsBloom
|
LogsBloom EthBytes `json:"logsBloom"`
|
||||||
Difficulty EthUint64 `json:"difficulty"`
|
Difficulty EthUint64 `json:"difficulty"`
|
||||||
TotalDifficulty EthUint64 `json:"totalDifficulty"`
|
TotalDifficulty EthUint64 `json:"totalDifficulty"`
|
||||||
Number EthUint64 `json:"number"`
|
Number EthUint64 `json:"number"`
|
||||||
@ -136,6 +136,7 @@ type EthBlock struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
EmptyEthBloom = [256]byte{}
|
||||||
EmptyEthHash = EthHash{}
|
EmptyEthHash = EthHash{}
|
||||||
EmptyEthInt = EthUint64(0)
|
EmptyEthInt = EthUint64(0)
|
||||||
EmptyEthNonce = [8]byte{0, 0, 0, 0, 0, 0, 0, 0}
|
EmptyEthNonce = [8]byte{0, 0, 0, 0, 0, 0, 0, 0}
|
||||||
@ -148,6 +149,7 @@ func NewEthBlock() EthBlock {
|
|||||||
TransactionsRoot: EmptyEthHash,
|
TransactionsRoot: EmptyEthHash,
|
||||||
ReceiptsRoot: EmptyEthHash,
|
ReceiptsRoot: EmptyEthHash,
|
||||||
Difficulty: EmptyEthInt,
|
Difficulty: EmptyEthInt,
|
||||||
|
LogsBloom: EmptyEthBloom[:],
|
||||||
Extradata: []byte{},
|
Extradata: []byte{},
|
||||||
MixHash: EmptyEthHash,
|
MixHash: EmptyEthHash,
|
||||||
Nonce: EmptyEthNonce,
|
Nonce: EmptyEthNonce,
|
||||||
|
Loading…
Reference in New Issue
Block a user