Error: Transaction too large for fee policy

+1 vote
Hi! related to the answer from that other topic.

I'm getting for every tx the message "Error: Transaction too large for fee policy" in the log.

I saw that I get over a 100 inputs and maybe this is the problem. How can i solve this?

These are my chain params:

{"method":"getblockchainparams","params":[],"id":1,"chain_name":"testchain14"}

{
    "chain-protocol" : "testchain",
    "chain-description" : "test",
    "root-stream-name" : "root",
    "root-stream-open" : true,
    "chain-is-testnet" : false,
    "target-block-time" : 15,
    "maximum-block-size" : 8388608,
    "default-network-port" : 15444,
    "default-rpc-port" : 15445,
    "anyone-can-connect" : true,
    "anyone-can-send" : true,
    "anyone-can-receive" : true,
    "anyone-can-receive-empty" : true,
    "anyone-can-create" : false,
    "anyone-can-issue" : false,
    "anyone-can-mine" : true,
    "anyone-can-activate" : false,
    "anyone-can-admin" : false,
    "support-miner-precheck" : true,
    "allow-p2sh-outputs" : true,
    "allow-multisig-outputs" : true,
    "setup-first-blocks" : 60,
    "mining-diversity" : 0.30000000,
    "admin-consensus-upgrade" : 0.50000000,
    "admin-consensus-admin" : 0.50000000,
    "admin-consensus-activate" : 0.50000000,
    "admin-consensus-mine" : 0.50000000,
    "admin-consensus-create" : 0.00000000,
    "admin-consensus-issue" : 0.00000000,
    "lock-admin-mine-rounds" : 10,
    "mining-requires-peers" : true,
    "mine-empty-rounds" : -1.00000000,
    "mining-turnover" : 0.50000000,
    "first-block-reward" : 50000000000000000,
    "initial-block-reward" : 10000000,
    "reward-halving-interval" : 21560000,
    "reward-spendable-delay" : 1,
    "minimum-per-output" : -1,
    "maximum-per-output" : 50000000100000000,
    "minimum-relay-fee" : 3000000,
    "native-currency-multiple" : 100000000,
    "skip-pow-check" : false,
    "pow-minimum-bits" : 8,
    "target-adjust-freq" : -1,
    "allow-min-difficulty-blocks" : false,
    "only-accept-std-txs" : true,
    "max-std-tx-size" : 4194304,
    "max-std-op-returns-count" : 10,
    "max-std-op-return-size" : 2097152,
    "max-std-op-drops-count" : 5,
    "max-std-element-size" : 8192,
    "chain-name" : "testchain14",
    "protocol-version" : 10008,
    "network-message-start" : "fff1f4f9",
    "address-pubkeyhash-version" : "00053272",
    "address-scripthash-version" : "0599a488",
    "private-key-version" : "8030df3e",
    "address-checksum-value" : "15b743a3",
    "genesis-pubkey" : "0245f4ebd51b8450bf5ce01a6d03570ebe422d8cdebe1c332ade5fd5
6e708f28d2",
    "genesis-version" : 1,
    "genesis-timestamp" : 1502828625,
    "genesis-nbits" : 536936447,
    "genesis-nonce" : 416,
    "genesis-pubkey-hash" : "e573ecbb4ff29bc81706a89e2e3d5a250df92cfe",
    "genesis-hash" : "00f86b5a5b0ca2479c2c0d51f000e1c4d1bd460af74f63272e5aee31bc
49c6bf",
    "chain-params-hash" : "c2f5be45a0f61f015f5416098488924c4b581bc449772e77a69d9
f93791596db"
}
asked Aug 28, 2017 by eFe

1 Answer

0 votes

I believe this is about the fee attached to the transaction. The minimum-relay-fee is slightly misleadingly named – it is actually the minimum fee per kilobyte in the transaction. So your transactions are presumably larger than 1kb, and need a higher fee than you thought.

answered Aug 28, 2017 by MultiChain
My average size for tx is 0.2kB. How does this relate with the error "Transaction too large for fee policy" in the log?
The threshold is applied on a per-transaction basis, not on some kind on average. So even if your average transaction is 0.2kb in size, the ones with 100 inputs are far larger than that.
...