diff options
Diffstat (limited to 'chain/block.go')
-rw-r--r-- | chain/block.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chain/block.go b/chain/block.go index 16975a2fe..a4ab560dc 100644 --- a/chain/block.go +++ b/chain/block.go @@ -238,7 +238,7 @@ func (block *Block) SetUncles(uncles []*Block) { func (self *Block) SetReceipts(receipts Receipts) { self.receipts = receipts self.ReceiptSha = DeriveSha(receipts) - self.LogsBloom = CreateBloom(self) + self.LogsBloom = CreateBloom(receipts) } func (self *Block) SetTransactions(txs Transactions) { @@ -319,8 +319,8 @@ func (block *Block) Trie() *trie.Trie { return block.state.Trie } -func (block *Block) GetRoot() interface{} { - return block.state.Trie.Root +func (block *Block) Root() interface{} { + return block.state.Root() } func (block *Block) Diff() *big.Int { @@ -340,7 +340,7 @@ func (block *Block) miningHeader() []interface{} { // Coinbase address block.Coinbase, // root state - block.state.Trie.Root, + block.Root(), // tx root block.TxSha, // Sha of tx @@ -393,7 +393,7 @@ func (block *Block) String() string { block.PrevHash, block.UncleSha, block.Coinbase, - block.state.Trie.Root, + block.Root(), block.TxSha, block.ReceiptSha, block.LogsBloom, |