Skip to content

Commit 5227c55

Browse files
committed
block setters
1 parent d77bbd9 commit 5227c55

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/types/block.libevm.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,15 @@ func (*NOOPBlockHooks) EncodeRLP(b *Block, w io.Writer) error {
169169
func (*NOOPBlockHooks) DecodeRLP(b *Block, s *rlp.Stream) error {
170170
return b.decodeRLP(s)
171171
}
172+
173+
func (b *Block) SetHeader(header *Header) {
174+
b.header = header
175+
}
176+
177+
func (b *Block) SetUncles(uncles []*Header) {
178+
b.uncles = uncles
179+
}
180+
181+
func (b *Block) SetTransactions(transactions Transactions) {
182+
b.transactions = transactions
183+
}

0 commit comments

Comments
 (0)