mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
appchain1.0
This commit is contained in:
parent
f976b8593a
commit
b051cb6d41
3 changed files with 2 additions and 4 deletions
BIN
cmd/geth.exe
Normal file
BIN
cmd/geth.exe
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -31,8 +31,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/core/state"
|
"github.com/ethereum/go-ethereum/core/state"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
|
||||||
|
|
||||||
set "gopkg.in/fatih/set.v0"
|
set "gopkg.in/fatih/set.v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -577,9 +575,9 @@ func AccumulateRewards(config *params.ChainConfig, state *state.StateDB, header
|
||||||
// log.Info("参数变量","minerpool",minerpool)
|
// log.Info("参数变量","minerpool",minerpool)
|
||||||
// reward.Sub(reward,minerpool)
|
// reward.Sub(reward,minerpool)
|
||||||
state.AddBalance(params.PosMinerContractAddr, TotalReward.Mul(TotalReward,big.NewInt(99)))
|
state.AddBalance(params.PosMinerContractAddr, TotalReward.Mul(TotalReward,big.NewInt(99)))
|
||||||
log.Info("参数变量","TotalReward",TotalReward)
|
//log.Info("参数变量","TotalReward",TotalReward)
|
||||||
}else{
|
}else{
|
||||||
state.AddBalance(header.Coinbase, TotalReward)
|
state.AddBalance(header.Coinbase, TotalReward)
|
||||||
log.Info("参数变量","TotalReward",TotalReward)
|
//log.Info("参数变量","TotalReward",TotalReward)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue