mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix: clique: update the GetSnapshotAtHash comments
This commit is contained in:
parent
8d0391806f
commit
43801fcd07
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
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) {
|
func (api *API) GetSnapshotAtHash(hash common.Hash) (*Snapshot, error) {
|
||||||
header := api.chain.GetHeaderByHash(hash)
|
header := api.chain.GetHeaderByHash(hash)
|
||||||
if header == nil {
|
if header == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue