Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue_send_tx using http always gets cancelled #2431

Closed
daggerhashimoto opened this issue Jan 20, 2019 · 1 comment
Closed

issue_send_tx using http always gets cancelled #2431

daggerhashimoto opened this issue Jan 20, 2019 · 1 comment

Comments

@daggerhashimoto
Copy link

daggerhashimoto commented Jan 20, 2019

Sending between two wallets using owner_api issue_send_tx with the http method, transactions always get cancelled after running wallet check

Thought the issue was running finalize but after checking out the code I realized that was not the case since it runs automatically if method == http

Steps to reproduce:

  1. Run wallet_1 with owner_api
  2. Run a wallet_2 in listening mode
  3. Send transaction using owner_api with http method from wallet_1 to wallet_2
  4. Run wallet check

I get the transaction slate on wallet_1's console.
I do not get any output from wallet_2's console.

Relevant parts of the grin-wallet.log

20190120 04:13:04.197 DEBUG grin_wallet::libwallet::internal::updater - Refreshing wallet outputs
20190120 04:13:04.198 DEBUG grin_core::libtx::build - Building input (spending regular output): 21624000010, 0300000000000000000000004500000000
20190120 04:13:04.198 DEBUG grin_wallet::libwallet::internal::selection - Building change outputs: total change: 21558000010 (3 outputs)
20190120 04:13:04.210 DEBUG grin_core::libtx::build - Building output: 7186000003, Commitment(09764e2b75bbb2caad1409b46e53f91d6f9280f8eb615683ae4b3ff8616ec85c31)
20190120 04:13:04.256 DEBUG grin_core::libtx::build - Building output: 7186000003, Commitment(09e236ff3b545d24fd06a5ca10a6ff98f19e58915ff46acd50a3b552f15d4966da)
20190120 04:13:04.299 DEBUG grin_core::libtx::build - Building output: 7186000004, Commitment(0804caf6922543b3e41254e16ef37be56805e676fb33027bb06da177e0d8ddb205)
20190120 04:13:04.367 INFO grin_wallet::controller - Tx created: 0.050000000 grin to http://35.237.142.156:3415 (strategy 'true')
20190120 04:13:04.367 DEBUG grin_wallet::adapters::http - Posting transaction slate to http://35.237.142.156:3415/v1/wallet/foreign/receive_tx
20190120 04:13:04.971 DEBUG grin_wallet::types - Using wallet seed file at: /Users/cd0x23/.grin/main/wallet_data/wallet.seed
20190120 04:13:04.989 DEBUG grin_wallet::types - Using wallet seed file at: /Users/cd0x23/.grin/main/wallet_data/wallet.seed
20190120 04:13:05.019 DEBUG grin_core::libtx::slate - Validating final transaction
20190120 04:13:26.006 INFO grin_util::logger - log4rs is initialized, file level: Debug, stdout level: Warn, min. level: Debug
@yeastplume
Copy link
Member

wallet check intentionally cancels transactions. Please see the docs here https://github.com/mimblewimble/docs/wiki/Wallet-User-Guide#check

You should be able to run wallet check again after the transactions have cleared to restore any outputs you might be missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants