Reference: https://stackoverflow.com/questions/56381891/altcoin-transactions-stucks-if-virtual-size-is-different-from-actual-sizeI'm making a new Altcoin for learning reasons, by now i've started 2 seeds on Vultr and 2 wallets on my personal computers witch one of them is mining with altcoin-cli generate 1
I've premined all the coins in a wallet and now if i try to send some coins from the main wallet to another one, the transaction is confirmed only if the virtual size of the transaction is equals to the actual size of the same transaction (figured out after ~50 transaction tries to different wallet addresses).
Here a transaction raw that is not accepted yet.
{
"Virtual_size": "166 bytes",
"Actual_size": "247 bytes"
}
{
"amount": 0.00000000,
"fee": -0.16600000,
"confirmations": 0,
"trusted": true,
"txid": "1d62d83f9e1a47b83c6465b36d3f160e7201a9740515780eee9c39d16b55e533",
"walletconflicts": [
],
"time": 1559231142,
"timereceived": 1559231142,
"bip125-replaceable": "yes",
"details": [
{
"address": "MD62saG9dQZTyJFBdEFmnykaPSMDyN75yq",
"category": "send",
"amount": -1.00000000,
"label": "",
"vout": 1,
"fee": -0.16600000,
"abandoned": false
},
{
"address": "MD62saG9dQZTyJFBdEFmnykaPSMDyN75yq",
"category": "receive",
"amount": 1.00000000,
"label": "",
"vout": 1
}
],
"hex": "020000000001014166ff3b004b97561a8f37fb9c0f0ceef14aface39f2fe6aca5e1c8d61a53b22000000001716001471e517d08d35fd7fddf926fd83a5e230e370f629fdffffff0246b3b2080000000017a914ded5235b1aa660dfac004b910f75f9277acb7ab78700e1f5050000000017a91438e70f9f739f9efdfc8c063708f1656869073d8b870247304402206ace74fba1c199a66d6b7850824262d1a568ef8639dbdb6941645c4dd793d59102204cec01667e386a195f6c7645ffbff825bb413c1032ef8b52a1357114713a77d20121024c9578fc7eedc57d1cc2280a8dbc3723445b1d96ee5bddd2cc6e09399f0fba4021140000"
}
Here a transaction raw that instead was immediatly accepted, also if sent 3 days after the transaction before.
{
"Virtual_size": "381 bytes",
"Actual_size": "381 bytes"
}
{
"amount": 0.00000000,
"fee": -0.39066128,
"confirmations": 1,
"blockhash": "7b871845f97b441e49df9999c3d857bce4c4357887f6e4ac93319035a450fa14",
"blockindex": 1,
"blocktime": 1559570837,
"txid": "f2f007d479dac213c456006cf542d97688de266cd68c153e24bcb35c71a0f7ce",
"walletconflicts": [
],
"time": 1559570647,
"timereceived": 1559570647,
"bip125-replaceable": "no",
"details": [
{
"address": "MD62saG9dQZTyJFBdEFmnykaPSMDyN75yq",
"category": "send",
"amount": -1.00000000,
"label": "",
"vout": 0,
"fee": -0.39066128,
"abandoned": false
},
{
"address": "MD62saG9dQZTyJFBdEFmnykaPSMDyN75yq",
"category": "receive",
"amount": 1.00000000,
"label": "",
"vout": 0
}
],
"hex": "02000000036322a92b7e68c6ecfa86814193bee805f9e347aedc04734efb141c65fdfe280f0000000048473044022028d59f446d9d44745b63126b15e4c5aeaea3568f66796117d6b0268b703599b30220624dbf19f79b000d87d3e760c1ecf861f00bbdc8b6b8f87d80f0fbbaf8dc551901fdffffff428bfed1ba8e85658e0cb8e524721c338b34e302fd66a8cfa3ce36ada5df9204000000004847304402204fd8a3b7592a18fe76da82fecebd3489bb24f38b74700f5dbeb7a223216f705f02206d64cff67e05011841381cfdff14839f79ed0a05a397d74a390545b38e39d62501fdffffff13673d9a2638bee2f629ec6876ab308bf2991177114a9e8cfae67297382870bf00000000484730440220012b76972b76444bef65c16f3a408fe7c2554f4e9214d9f70e2f41fc86a730c00220727df1eaec576330edd7aa40e1ae0249251163c69a25453ba38ed9988bec27a601fdffffff0100e1f5050000000017a91438e70f9f739f9efdfc8c063708f1656869073d8b87e3140000"
}