Account Numbers for Replay Protection with Account Pruning (#1077)
* in progress * passes current tests * added tests and got working * changelog and docs * removed prints * oops * works! * issue in test_cli * number 9 number 9 number 9 * at least it does only the 9 issue now * hallelujah it works! * removed print statement * rebased * gah
This commit is contained in:
committed by
Christopher Goes
parent
1b20adcd22
commit
161cb474d4
@@ -146,6 +146,7 @@ func (app *BasecoinApp) initChainer(ctx sdk.Context, req abci.RequestInitChain)
|
||||
panic(err) // TODO https://github.com/cosmos/cosmos-sdk/issues/468
|
||||
// return sdk.ErrGenesisParse("").TraceCause(err, "")
|
||||
}
|
||||
acc.AccountNumber = app.accountMapper.GetNextAccountNumber(ctx)
|
||||
app.accountMapper.SetAccount(ctx, acc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user