sumoprojects/sumokoin

issue with subaddresses

Closed this issue · 0 comments

Transferred some sumo to a subaddress, now it is impossible to spend them.

2018-Jun-04 15:18:29.527154 selected transfers:
2018-Jun-04 15:18:29.630058 amount=3699.970000000, real_output=6, real_output_in_tx_index=1, indexes: 847428 902450 991497 1019381 1190448 1251713 1255865 1403314 1432233 1433816 1436756 1437188 1438161
2018-Jun-04 15:18:29.631058 amount=9.992020120, real_output=3, real_output_in_tx_index=1, indexes: 193074 1150790 1203743 1261717 1292959 1432352 1433524 1435452 1437498 1438214 1438645 1440298 1440428
2018-Jun-04 15:18:29.631058 amount=100.000000000, real_output=3, real_output_in_tx_index=1, indexes: 305300 388713 471467 1255737 1412434 1433199 1434437 1436793 1438441 1438605 1438627 1439591 1440755
2018-Jun-04 15:18:29.632057 amount=200.000000000, real_output=5, real_output_in_tx_index=1, indexes: 71352 228553 824826 834745 919387 1255781 1415278 1435385 1436926 1437866 1437944 1439177 1439850
2018-Jun-04 15:18:29.632057 ERROR C:/msys64/home/Admin/sumokoin-sumoproject/src/cryptonote_core/cryptonote_format_utils.cpp:602 Destinations have to have exactly one output to support encrypted payment ids
2018-Jun-04 15:18:29.632057 ERROR C:/msys64/home/Admin/sumokoin-sumoproject/src/wallet/wallet2.cpp:4104 !r. THROW EXCEPTION: error::tx_not_constructed
2018-Jun-04 15:18:29.632057 C:/msys64/home/Admin/sumokoin-sumoproject/src/wallet/wallet2.cpp:4104:N5tools5error18tx_not_constructedE: transaction was not constructed
Sources:
source 0:
amount: 3699.970000000
source 1:
amount: 9.992020120
source 2:
amount: 100.000000000
source 3:
amount: 200.000000000
Destinations:
0: SumoAddressRedacted 0.000000001
unlock_time: 0
2018-Jun-04 15:18:29.633056 Error: transaction was not constructed

You will notice it complains about having more than one destination but there is only one...

Using a compiled linux version will just crash instead:

======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f3df192c7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f3df193537a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f3df193953c]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_ZN5tools7wallet224create_transactions_fromERKN10cryptonote22account_public_addressEbSt6vectorImSaImEES7_mmjS5_IhSaIhEEbf+0x27ec)[0x5b02ec]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_ZN5tools7wallet223create_transactions_allEmRKN10cryptonote22account_public_addressEmmjSt6vectorIhSaIhEEbjSt3setIjSt4lessIjESaIjEEbf+0x3f1)[0 x5b0961]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_ZN10cryptonote13simple_wallet9sweep_allERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEbf+0x597)[0x4e6517]
sumokoin-0.3.2.0/bin/sumo-wallet-cli[0x4bc0b1]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_ZN4epee15command_handler19process_command_strERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xd8)[0x4be0b8]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_ZN10cryptonote13simple_wallet3runEv+0xa15)[0x5156e5]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(main+0xba4)[0x4a5c44]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f3df18d5830]
sumokoin-0.3.2.0/bin/sumo-wallet-cli(_start+0x29)[0x4b2ae9]

note: this happens with all versions of sumo