beacon/light: more misc fixes

This commit is contained in:
lightclient 2024-01-05 08:44:47 -07:00
parent a4f3bdfa38
commit 2333dcdb24
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -150,6 +150,7 @@ func (c *LightClient) Start() error {
} }
} }
// Stop halts the light client.
func (c *LightClient) Stop() error { func (c *LightClient) Stop() error {
close(c.quitCh) close(c.quitCh)
return nil return nil
@ -253,7 +254,7 @@ func versionedBlockToExecutableData(block *eth2spec.VersionedSignedBeaconBlock)
GasUsed: p.GasUsed, GasUsed: p.GasUsed,
Timestamp: p.Timestamp, Timestamp: p.Timestamp,
ExtraData: p.ExtraData, ExtraData: p.ExtraData,
BaseFeePerGas: nil, // TODO: convert this []uint64 correctly to big.Int BaseFeePerGas: p.BaseFeePerGas.ToBig(),
BlockHash: common.Hash(p.BlockHash), BlockHash: common.Hash(p.BlockHash),
Transactions: [][]byte{}, Transactions: [][]byte{},
Withdrawals: nil, Withdrawals: nil,