diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/types/block.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index 99d6cc8..0a93601 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -330,6 +330,9 @@ func (b *Block) SetExtraData(data []byte) { } func (b *Block) ExtraData() []byte { + if b.extdata == nil { + return nil + } return *b.extdata } |