core: don't copy config in ApplyPolicyToTxSet

Makes no sense, GetConfig() is for external users.
This commit is contained in:
Roman Khimov 2021-07-09 13:01:42 +03:00
parent 701a3a728a
commit 1853d0c713

View file

@ -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)