Skip to content

Commit

Permalink
block setters
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 21, 2025
1 parent 4271464 commit 4209b11
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/types/block.libevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,15 @@ func (*NOOPBlockHooks) EncodeRLP(b *Block, w io.Writer) error {
func (*NOOPBlockHooks) DecodeRLP(b *Block, s *rlp.Stream) error {
return b.decodeRLP(s)
}

func (b *Block) SetHeader(header *Header) {
b.header = header
}

func (b *Block) SetUncles(uncles []*Header) {
b.uncles = uncles
}

func (b *Block) SetTransactions(transactions Transactions) {
b.transactions = transactions
}

0 comments on commit 4209b11

Please sign in to comment.