Skip to content

redeemmultisigout: assigns fee below min allowed #2273

@norwnd

Description

@norwnd

I've been playing with redeemmultisigout (and multi-sigs in general), when I'm trying to broadcast 2 of 2 signed transaction via https://testnet.dcrdata.org/decodetx I get:

Error: -1: rejected transaction 602702108225c89e5e9d050c4766858adc1cd53d42ebdefa77a3ea7c058b74dd: regular transaction 602702108225c89e5e9d050c4766858adc1cd53d42ebdefa77a3ea7c058b74dd pays a fee of 2190 atoms which is under the required fee of 2540 atoms for a 254-byte transaction

it seems redeemmultisigout assigns very low fee for such transaction ?

Partially signed transaction (1 of 2) I get from redeemmultisigout looks like this:

0100000001da72d6f35c9cc3aa248341885fa9526eecb3f45a4b9e98d9ed61a0bd086e952c0000000000ffffffff01924500000000000000001976a91412f1e1fb75d8ba8b0d7fa445d5125630aba3c69988ac000000000000000001204e00000000000000000000ffffffff48475221030e4db4d37cfa43553c645ad20ca79ae79eef966f41243628310e7624d33a41452102dc7aaeb575d3170760f3c719befd52805a0301b200a1e4efb700ebcc379a9af552ae

while fully signed (2 of 2) gets bigger and looks like this:

0100000001da72d6f35c9cc3aa248341885fa9526eecb3f45a4b9e98d9ed61a0bd086e952c0000000000ffffffff01924500000000000000001976a91412f1e1fb75d8ba8b0d7fa445d5125630aba3c69988ac000000000000000001204e00000000000000000000ffffffff914730440220597473ee2d1bb3581b7327c85f9245d395d339a5caf3ff65e7957d97e9927821022065b97b591c5fb9406a4b87b8424195690bdf152649dbb02c7a6b6636cfea4f2c0100475221030e4db4d37cfa43553c645ad20ca79ae79eef966f41243628310e7624d33a41452102dc7aaeb575d3170760f3c719befd52805a0301b200a1e4efb700ebcc379a9af552ae

I've also tried to publish fully signed transaction with dcrwallet, it looks like it accepted the request but didn't actually publish this txn:

~ » decred/dcrctl --testnet --wallet sendrawtransaction 0100000001da72d6f35c9cc3aa248341885fa9526eecb3f45a4b9e98d9ed61a0bd086e952c0000000000ffffffff01924500000000000000001976a91412f1e1fb75d8ba8b0d7fa445d5125630aba3c69988ac000000000000000001204e00000000000000000000ffffffff914730440220597473ee2d1bb3581b7327c85f9245d395d339a5caf3ff65e7957d97e9927821022065b97b591c5fb9406a4b87b8424195690bdf152649dbb02c7a6b6636cfea4f2c0100475221030e4db4d37cfa43553c645ad20ca79ae79eef966f41243628310e7624d33a41452102dc7aaeb575d3170760f3c719befd52805a0301b200a1e4efb700ebcc379a9af552ae
0c639a378074d0fb710fd8c2aa81887e37b72aa61bd2b6f63b0b14f80c335569

dcrwallet log:

2023-07-25 13:39:42.376 [INF] WLLT: Inserting unconfirmed transaction 0c639a378074d0fb710fd8c2aa81887e37b72aa61bd2b6f63b0b14f80c335569

Additional info about this multisig address:

~ » decred/dcrctl --testnet --wallet getmultisigoutinfo 2c956e08bda061edd9989e4b5af4b3ec6e52a95f88418324aac39c5cf3d672da 0
{
  "address": "TcoAoGJUeo6dPojqgwKjWxUpPanncZEofoJ",
  "redeemscript": "5221030e4db4d37cfa43553c645ad20ca79ae79eef966f41243628310e7624d33a41452102dc7aaeb575d3170760f3c719befd52805a0301b200a1e4efb700ebcc379a9af552ae",
  "m": 2,
  "n": 2,
  "pubkeys": [
    "030e4db4d37cfa43553c645ad20ca79ae79eef966f41243628310e7624d33a4145",
    "02dc7aaeb575d3170760f3c719befd52805a0301b200a1e4efb700ebcc379a9af5"
  ],
  "txhash": "2c956e08bda061edd9989e4b5af4b3ec6e52a95f88418324aac39c5cf3d672da",
  "blockheight": 1176175,
  "blockhash": "b866a5bd3e13d42769f987de62604a4507f091331211823a783b994b9a2d13f0",
  "spent": true,
  "spentby": "0c639a378074d0fb710fd8c2aa81887e37b72aa61bd2b6f63b0b14f80c335569",
  "spentbyindex": 0,
  "amount": 0.0002
}

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