mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
ethapi: fix ineffassign warning (#1907)
This commit is contained in:
parent
2a56eccf45
commit
51e3c866c8
1 changed files with 1 additions and 1 deletions
|
|
@ -2661,7 +2661,7 @@ func (s *BlockChainAPI) GetTokenStats(ctx context.Context, epochNr rpc.EpochNumb
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.New("undefined XDPoS consensus engine")
|
return nil, errors.New("undefined XDPoS consensus engine")
|
||||||
}
|
}
|
||||||
statedb, header, err := s.b.StateAndHeaderByNumber(ctx, rpc.LatestBlockNumber)
|
statedb, header, _ := s.b.StateAndHeaderByNumber(ctx, rpc.LatestBlockNumber)
|
||||||
nonce := statedb.GetNonce(common.MintedRecordAddressBinary)
|
nonce := statedb.GetNonce(common.MintedRecordAddressBinary)
|
||||||
if nonce == 0 {
|
if nonce == 0 {
|
||||||
return nil, errors.New("mintedRecordAddress is not initialized due to Reward Upgrade is not applied")
|
return nil, errors.New("mintedRecordAddress is not initialized due to Reward Upgrade is not applied")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue