BOXFoundation / boxd

Blockchain for BOX Payout
MIT License
40 stars 10 forks source link

coinbase transaction for block pays 5000012903 which is more than expected value of 5000012803 #240

Closed Jerick26 closed 5 years ago

Jerick26 commented 5 years ago

Expected Behavior

no error log

Current Behavior

error log: coinbase transaction for block pays 5000012903 which is more than expected value of 5000012803

Possible Solution

Steps to Reproduce

  1. integration test config param set:
    ...
    "transaction_test": {
    "enable": true,
    "collection_accounts": 12,
    "collection_unit_accounts": 4,
    "circulation_accounts": 12,
    "circulation_unit_accounts": 4,
    "circulation_repeat_times": 400
    },
    "token_test": {
    "enable": true,
    "accounts": 6,
    "unit_accounts": 3,
    "repeat_times": 200
    },
    ...

    stress is overload, tps may be (12/4+12/4)400+6/3200=2800, 1000+ in all probability.

  2. ./integration_tests -scope=continue

Context (Environment)

commit: f9ecc721cad19bac069038107b44dac105f656a2

Detailed Description

ERRO[0055] coinbase transaction for block pays 5000012903 which is more than expected value of 5000012803  source="chain/blockchain.go:480" tag=chain
ERRO[0055] Failed to accept the block into the main chain. Err: Coinbase pays more than expected value  source="chain/blockchain.go:279" tag=chain
WARN[0055] Failed to process block. err: Coinbase pays more than expected value  source="dpos/dpos.go:237" tag=dpos

Possible Implementation