mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-04 15:55:23 +00:00
convert "DefaultPowerReduction" by conversion multiplier
This commit is contained in:
parent
ac2818e8e8
commit
5bb05b74f5
@ -4,6 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
|
sdkmath "cosmossdk.io/math"
|
||||||
dbm "github.com/cometbft/cometbft-db"
|
dbm "github.com/cometbft/cometbft-db"
|
||||||
abci "github.com/cometbft/cometbft/abci/types"
|
abci "github.com/cometbft/cometbft/abci/types"
|
||||||
tmjson "github.com/cometbft/cometbft/libs/json"
|
tmjson "github.com/cometbft/cometbft/libs/json"
|
||||||
@ -272,6 +273,12 @@ type App struct {
|
|||||||
configurator module.Configurator
|
configurator module.Configurator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// 1stake = 1 ukava = 1_000_000_000_000 akava = 1_000_000_000_000 neuron
|
||||||
|
conversionMultiplier := sdkmath.NewIntFromUint64(1_000_000_000_000)
|
||||||
|
sdk.DefaultPowerReduction = sdk.DefaultPowerReduction.Mul(conversionMultiplier)
|
||||||
|
}
|
||||||
|
|
||||||
// NewApp returns a reference to an initialized App.
|
// NewApp returns a reference to an initialized App.
|
||||||
func NewApp(
|
func NewApp(
|
||||||
logger tmlog.Logger,
|
logger tmlog.Logger,
|
||||||
|
Loading…
Reference in New Issue
Block a user