0

I have generated an 'unsigned_txset" (one tx) from transfer ... "do_not_relay":true on a view-only wallet. Then disconnect the main (with keys) wallet and try to create a signed txset using monero-wallet-cli as seen below.

The file is good from logs


dev@dev-ThinkPad-T430 ~/gex/monero/build/Linux/release-v0.18/release/bin (release-v0.18)$ ./monero-wallet-cli --daemon-address 127.0.0.1:18081  --wallet-file /home/dev/dextest/xmr/wallets/tx_builder/tx_builder   --allow-mismatched-daemon-version --log-level 2 --do-not-relay
This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.
WARNING: Do not reuse your Monero keys on another fork, UNLESS this fork has key reuse mitigations built in. Doing so will harm your privacy.

Monero 'Fluorine Fermi' (v0.18.3.3-release)
Logging to ./monero-wallet-cli.log
Wallet password: 
Opened wallet: 46MdM2AoFHz8wAkRgBvjpBe6zmDaUTXqDEHU7SxpJjvULydszNoHLdn4qzCRjRzmEL3dBStqjFFkb1P31vBbVe5KEDzh6LV
**********************************************************************
Use the "help" command to see a simplified list of available commands.
Use "help all" to see the list of all available commands.
Use "help <command>" to see a command's documentation.
**********************************************************************
Background mining not enabled. Run "set setup-background-mining 1" to change.
Starting refresh...
Refresh done, blocks received: 15                               
Untagged accounts:
          Account               Balance      Unlocked balance                 Label
 *       0 46MdM2       84.000000000000       84.000000000000       Primary account
------------------------------------------------------------------------------------
          Total         84.000000000000       84.000000000000
Currently selected account: [0] Primary account
Tag: (No tag assigned)
Balance: 84.000000000000, unlocked balance: 84.000000000000
Background refresh thread started
[wallet 46MdM2]: sign_transfer unsigned_txset
[wallet 46MdM2]: entered simple_wallet::sign_transfer
Wallet password: 
Loaded 1 transactions, for 10.000000000000, fee 0.001808400000, sending 0.055550000000 to 494aSG3QY1C4PJf7YyDjFc9n2uAuARWSoGQ3hrgPWXtEjgGrYDn2iUw8WJP5Dzm4GuMkY332N9WfbaKfu5tWM3wk8ZeSEC5, 9.942641600000 change to 46MdM2AoFHz8wAkRgBvjpBe6zmDaUTXqDEHU7SxpJjvULydszNoHLdn4qzCRjRzmEL3dBStqjFFkb1P31vBbVe5KEDzh6LV, with min ring size 16, dummy encrypted payment ID. 8 outputs to import. Is this okay?  (Y/Yes/N/No): Y

*** Error: Failed to sign transaction: Hot wallets cannot import outputs ***

--------------------------------------------------------------------

dev@dev-ThinkPad-T430 ~/gex/monero/build/Linux/release-v0.18/release/bin (release-v0.18)$ ./monero-wallet-cli --offline  --wallet-file /home/dev/dextest/xmr/wallets/tx_builder/tx_builder   --allow-mismatched-daemon-version --log-level 2 --do-not-relay
This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.
WARNING: Do not reuse your Monero keys on another fork, UNLESS this fork has key reuse mitigations built in. Doing so will harm your privacy.

Monero 'Fluorine Fermi' (v0.18.3.3-release)
Logging to ./monero-wallet-cli.log
Wallet password: 
Opened wallet: 46MdM2AoFHz8wAkRgBvjpBe6zmDaUTXqDEHU7SxpJjvULydszNoHLdn4qzCRjRzmEL3dBStqjFFkb1P31vBbVe5KEDzh6LV
**********************************************************************
Use the "help" command to see a simplified list of available commands.
Use "help all" to see the list of all available commands.
Use "help <command>" to see a command's documentation.
**********************************************************************
Background mining not enabled. Run "set setup-background-mining 1" to change.

*** Error: wallet failed to connect to daemon, because it is set to offline mode ***

----------------------------------------------------------------------------

I tried starting monero-wallet-cli twice: with --offline and with a daemon address. The file is accepted (from the damon logs in wallet2.cpp) but both offline and online sign_transfer calls dail for the reaons in the outputs above. If offline monero-wallet-cli says it cannot connect to the damon and with a connected daemon it fails to get the outputs becuse it says "Hot wallets cannot import outputs"

Maybe there is a workaround exporting the outputs from the main (not view_only) wallet?

Help please!

0

0