fix: clique: update the GetSnapshotAtHash comments

This commit is contained in:
georgehao 2023-12-24 12:14:40 +08:00
parent 8d0391806f
commit 43801fcd07
No known key found for this signature in database

View file

@ -51,7 +51,7 @@ func (api *API) GetSnapshot(number *rpc.BlockNumber) (*Snapshot, error) {
return api.clique.snapshot(api.chain, header.Number.Uint64(), header.Hash(), nil)
}
// GetSnapshotAtHash retrieves the state snapshot at a given block.
// GetSnapshotAtHash retrieves the state snapshot at a given block hash.
func (api *API) GetSnapshotAtHash(hash common.Hash) (*Snapshot, error) {
header := api.chain.GetHeaderByHash(hash)
if header == nil {