light weight block event

This commit is contained in:
Ethan Buchman
2016-04-19 20:45:33 -04:00
parent 27eede190a
commit ae07c0171d
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -57,7 +57,11 @@ var _ = wire.RegisterInterface(
// but some (an input to a call tx or a receive) are more exotic
type EventDataNewBlock struct {
Block *Block `json:"block"`
// we drop block data but keep the form the same
Block *BlockHeader `json:"block"`
}
type BlockHeader struct {
Header *Header `json:"header"`
}
// All txs fire EventDataTx