Skip to content

Commit 8a11e69

Browse files
authored
feat(taiko-api): set l1 origin sig (ethereum#440)
* add set l1 origin sig method * rm build
1 parent 8c15fa3 commit 8a11e69

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

eth/taiko_api_backend.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ func (a *TaikoAuthAPIBackend) UpdateL1Origin(l1Origin *rawdb.L1Origin) *rawdb.L1
8787
return l1Origin
8888
}
8989

90+
func (a *TaikoAuthAPIBackend) SetL1OriginSignature(blockID *big.Int, signature [65]byte) (*rawdb.L1Origin, error) {
91+
l1Origin, err := rawdb.ReadL1Origin(a.eth.ChainDb(), blockID)
92+
if err != nil {
93+
return nil, err
94+
}
95+
96+
l1Origin.Signature = signature
97+
rawdb.WriteL1Origin(a.eth.ChainDb(), blockID, l1Origin)
98+
99+
return l1Origin, nil
100+
}
101+
90102
// TxPoolContent retrieves the transaction pool content with the given upper limits.
91103
func (a *TaikoAuthAPIBackend) TxPoolContent(
92104
beneficiary common.Address,

0 commit comments

Comments
 (0)