mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
core: don't copy config in ApplyPolicyToTxSet
Makes no sense, GetConfig() is for external users.
This commit is contained in:
parent
701a3a728a
commit
1853d0c713
1 changed files with 2 additions and 2 deletions
|
@ -1400,8 +1400,8 @@ func (bc *Blockchain) ApplyPolicyToTxSet(txes []*transaction.Transaction) []*tra
|
||||||
if maxTx != 0 && len(txes) > int(maxTx) {
|
if maxTx != 0 && len(txes) > int(maxTx) {
|
||||||
txes = txes[:maxTx]
|
txes = txes[:maxTx]
|
||||||
}
|
}
|
||||||
maxBlockSize := bc.GetConfig().MaxBlockSize
|
maxBlockSize := bc.config.MaxBlockSize
|
||||||
maxBlockSysFee := bc.GetConfig().MaxBlockSystemFee
|
maxBlockSysFee := bc.config.MaxBlockSystemFee
|
||||||
defaultWitness := bc.defaultBlockWitness.Load()
|
defaultWitness := bc.defaultBlockWitness.Load()
|
||||||
if defaultWitness == nil {
|
if defaultWitness == nil {
|
||||||
m := smartcontract.GetDefaultHonestNodeCount(bc.config.ValidatorsCount)
|
m := smartcontract.GetDefaultHonestNodeCount(bc.config.ValidatorsCount)
|
||||||
|
|
Loading…
Reference in a new issue