aboutsummaryrefslogtreecommitdiff
path: root/consensus/dummy/consensus.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-18 13:09:22 -0400
committerDeterminant <[email protected]>2020-09-18 13:09:22 -0400
commit3ea6a7940e40677b629270dfc7a1466bca295bd3 (patch)
tree1a7f65fcd72e77092525ab01625b8b9d365e3e40 /consensus/dummy/consensus.go
parentb0a75c03303fe22f31fe1e1f0fa29a1e1cd78253 (diff)
clean up the code
Diffstat (limited to 'consensus/dummy/consensus.go')
-rw-r--r--consensus/dummy/consensus.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/consensus/dummy/consensus.go b/consensus/dummy/consensus.go
index 42e224d..da63673 100644
--- a/consensus/dummy/consensus.go
+++ b/consensus/dummy/consensus.go
@@ -262,10 +262,10 @@ func (self *DummyEngine) Finalize(
func (self *DummyEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error) {
- var extdata *[]byte
+ var extdata []byte
if self.cb.OnFinalizeAndAssemble != nil {
ret, err := self.cb.OnFinalizeAndAssemble(state, txs)
- extdata = &ret
+ extdata = ret
if err != nil {
return nil, err
}