diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-01 01:21:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-09-11 22:42:25 +0800 |
commit | 2b339cbbd8bb475d2195d54a71dcced700003430 (patch) | |
tree | 7520c67d5bb5c66fe2430394a72f83d052bbe2b7 /core/types | |
parent | 4e075e401354b4ee068cf78b1f283763fe927245 (diff) | |
download | dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.gz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.bz2 dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.lz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.xz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.zst dexon-2b339cbbd8bb475d2195d54a71dcced700003430.zip |
core, eth: split the db blocks into headers and bodies
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/block.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index fd81db04c..558b46e01 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -135,6 +135,7 @@ type Block struct { ReceivedAt time.Time } +// [deprecated by eth/63] // StorageBlock defines the RLP encoding of a Block stored in the // state database. The StorageBlock encoding contains fields that // would otherwise need to be recomputed. @@ -147,6 +148,7 @@ type extblock struct { Uncles []*Header } +// [deprecated by eth/63] // "storage" block encoding. used for database. type storageblock struct { Header *Header @@ -268,6 +270,7 @@ func (b *Block) EncodeRLP(w io.Writer) error { }) } +// [deprecated by eth/63] func (b *StorageBlock) DecodeRLP(s *rlp.Stream) error { var sb storageblock if err := s.Decode(&sb); err != nil { @@ -277,6 +280,7 @@ func (b *StorageBlock) DecodeRLP(s *rlp.Stream) error { return nil } +// [deprecated by eth/63] func (b *StorageBlock) EncodeRLP(w io.Writer) error { return rlp.Encode(w, storageblock{ Header: b.header, |