OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Mov (#518)
[bytom/vapor.git]
/
protocol
/
bc
/
types
/
block.go
diff --git
a/protocol/bc/types/block.go
b/protocol/bc/types/block.go
index
654da54
..
621935a
100644
(file)
--- a/
protocol/bc/types/block.go
+++ b/
protocol/bc/types/block.go
@@
-102,6
+102,7
@@
func (b *Block) readFrom(r *blockchain.Reader) error {
return nil
}
+// WriteTo write block to io.Writer
func (b *Block) WriteTo(w io.Writer) (int64, error) {
ew := errors.NewWriter(w)
if err := b.writeTo(ew, SerBlockFull); err != nil {