aboutsummaryrefslogtreecommitdiff
path: root/consensus
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-09-18 13:09:22 -0400
committerDeterminant <tederminant@gmail.com>2020-09-18 13:09:22 -0400
commit3ea6a7940e40677b629270dfc7a1466bca295bd3 (patch)
tree1a7f65fcd72e77092525ab01625b8b9d365e3e40 /consensus
parentb0a75c03303fe22f31fe1e1f0fa29a1e1cd78253 (diff)
clean up the code
Diffstat (limited to 'consensus')
-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
}