Browse Source

fixed TestNodeInfo test

refactore/rollupUpdateBuckets
Mikelle 3 years ago
parent
commit
dde99d6178
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      db/historydb/views.go

+ 2
- 1
db/historydb/views.go

@ -374,14 +374,15 @@ type RollupVariablesAPI struct {
// NewRollupVariablesAPI creates a RollupVariablesAPI from common.RollupVariables
func NewRollupVariablesAPI(rollupVariables *common.RollupVariables) *RollupVariablesAPI {
buckets := make([]BucketParamsAPI, len(rollupVariables.Buckets))
rollupVars := RollupVariablesAPI{
EthBlockNum: rollupVariables.EthBlockNum,
FeeAddToken: apitypes.NewBigIntStr(rollupVariables.FeeAddToken),
ForgeL1L2BatchTimeout: rollupVariables.ForgeL1L2BatchTimeout,
WithdrawalDelay: rollupVariables.WithdrawalDelay,
SafeMode: rollupVariables.SafeMode,
Buckets: buckets,
}
for i, bucket := range rollupVariables.Buckets {
rollupVars.Buckets[i] = BucketParamsAPI{
CeilUSD: apitypes.NewBigIntStr(bucket.CeilUSD),

Loading…
Cancel
Save