rigel: Handle auto-sequence when nonce=0

This commit is contained in:
Ethan Frey 2017-07-19 13:32:55 +02:00
parent a12d866ed1
commit 737e3740dd
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ func doNonceQuery(signers []basecoin.Actor) (sequence uint32, proof lc.Proof, er
proof, err = proofcmd.GetAndParseAppProof(key, &sequence)
if lc.IsNoDataErr(err) {
err = errors.Errorf("Sequence is empty for key %s ", key)
// no data, return sequence 0
return 0, proof, nil
}
return