Skip to content

Updating contract binary with v2 multisig lock results in PoolRejectedTransactionByMinFeeRate #649

@sunchengzhu

Description

@sunchengzhu

ckb-cli version: v1.16.0

ckb-cli deploy apply-txs --info-file ./update-tx.json --migration-dir ./migrations
> [send cell transaction]: 0xac409c78d52ea6e4ea9cb18cbd90efcf3419e9f42aedfc2b1292db291f563959

Send transaction error: jsonrpc error: Server error: PoolRejectedTransactionByMinFeeRate: The min fee rate is 1000 shannons/KW, requiring a transaction fee of at least 18672 shannons, but the fee provided is only 18478

Additional Info 1: The legacy multisig lock does not have this issue — it can be upgraded successfully. See transaction: https://testnet.explorer.nervos.org/transaction/0x572b6ecbec501f0821e05a6eba6d768e7a1350ed53865cb66ef8315a959cbaaf

Additional Info 2: Deploying either the pre-upgrade or post-upgrade contract binary individually can succeed without errors.

deployment.toml

[[cells]]
name = "always-success"
enable_type_id = true 
location = { file = "./always-success" }

# The lock script set to output cells
[lock]
code_hash = "0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29"
args = "0xc582ffd0d62108061b185c7693b90379ef1cbc3b"
hash_type = "data1"

# For unlocking inputs with multisig lock script
[multisig_config]
sighash_addresses = [
  "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvm4mmpqw7vp4alvjuls8lxqz0jtvd47mqg0estw",
  "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqtmcfut7hfzcpcjx5m2c6ylrnfkckyvldcu8d67f",
]
require_first_n = 0
threshold = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions