diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-12 20:37:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 20:37:10 +0800 |
commit | 6b7ae4e751dbaee0f31032f045fd35b0c1079388 (patch) | |
tree | e63f021ae31976fa78e2f5c76a9d1399264db942 /consensus/clique/clique.go | |
parent | 050ceff1aed3d06b4ebf4aead0dc03e7cac34458 (diff) | |
download | dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.gz dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.bz2 dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.lz dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.xz dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.zst dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.zip |
consensus/clique, internal/web3ext: support hash based API queries (#14321)
* consensus/clique, internal/web3ext: support hash based API queries
* consensus/clique: make RPC return types public
Diffstat (limited to 'consensus/clique/clique.go')
-rw-r--r-- | consensus/clique/clique.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index e516d5057..3c36545c4 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -349,16 +349,16 @@ func (c *Clique) verifyCascadingFields(chain consensus.ChainReader, header *type } // snapshot retrieves the authorization snapshot at a given point in time. -func (c *Clique) snapshot(chain consensus.ChainReader, number uint64, hash common.Hash, parents []*types.Header) (*snapshot, error) { +func (c *Clique) snapshot(chain consensus.ChainReader, number uint64, hash common.Hash, parents []*types.Header) (*Snapshot, error) { // Search for a snapshot in memory or on disk for checkpoints var ( headers []*types.Header - snap *snapshot + snap *Snapshot ) for snap == nil { // If an in-memory snapshot was found, use that if s, ok := c.recents.Get(hash); ok { - snap = s.(*snapshot) + snap = s.(*Snapshot) break } // If an on-disk checkpoint snapshot can be found, use that |