Skip to content

Commit

Permalink
Merge pull request #170 from wukongcheng/silei/refactor
Browse files Browse the repository at this point in the history
Silei/refactor:  router seal && genesis default account balance
  • Loading branch information
wukongcheng authored Aug 24, 2018
2 parents 71e1356 + 9c1b556 commit 977f8d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func NewIrisApp(logger log.Logger, db dbm.DB, traceStore io.Writer, baseAppOptio
AddRoute("ibc", []*sdk.KVStoreKey{app.keyIBC, app.keyAccount}, ibc.NewHandler(app.ibcMapper, app.coinKeeper)).
AddRoute("stake", []*sdk.KVStoreKey{app.keyStake, app.keyAccount}, stake.NewHandler(app.stakeKeeper)).
AddRoute("slashing", []*sdk.KVStoreKey{app.keySlashing, app.keyStake}, slashing.NewHandler(app.slashingKeeper)).
AddRoute("gov", []*sdk.KVStoreKey{app.keyGov, app.keyAccount, app.keyStake, app.keyIparams}, gov.NewHandler(app.govKeeper)).
AddRoute("gov", []*sdk.KVStoreKey{app.keyGov, app.keyAccount, app.keyStake, app.keyIparams, app.keyParams}, gov.NewHandler(app.govKeeper)).
AddRoute("upgrade", []*sdk.KVStoreKey{app.keyUpgrade, app.keyStake}, upgrade.NewHandler(app.upgradeKeeper))

app.feeManager = bam.NewFeeManager(app.iparamsKeeper.Getter())
Expand Down
2 changes: 1 addition & 1 deletion app/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func IrisAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState
// create the genesis account, give'm few steaks and a buncha token with there name
accAuth := auth.NewBaseAccountWithAddress(genTx.Address)
accAuth.Coins = sdk.Coins{
{denom, totalTokenAmt},
{denom, sdk.NewInt(freeFermionVal)},
}
acc := NewGenesisAccount(&accAuth)
genaccs[i] = acc
Expand Down
6 changes: 3 additions & 3 deletions baseapp/setters.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func (app *BaseApp) SetPubKeyPeerFilter(pf sdk.PeerFilter) {
app.pubkeyPeerFilter = pf
}
func (app *BaseApp) Router() Router {
if app.sealed {
panic("Router() on sealed BaseApp")
}
//if app.sealed {
// panic("Router() on sealed BaseApp")
//}
return app.router
}
func (app *BaseApp) Seal() { app.sealed = true }
Expand Down

0 comments on commit 977f8d6

Please sign in to comment.