Closed MCM-Mike closed 3 years ago
@marekyggdrasil @bladedoyle can one of you please rewrite this test-case or delete if duplicate.
Environment
Computer Model: MacBook Air 2019 model
Operating system: macOS Mojave version 10.14.6
Rustup version: rustc 1.48.0 (7eac88abb 2020-11-16)
Clang version: clang version 11.0.0
Target: x86_64-apple-darwin18.7.0
Thread model: posix
Open SSL: LibreSSL 2.6.5
I have the following two wallets
Sender
grin-wallet which is the default wallet with the wallet version
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet -V
grin-wallet 5.0.0-beta.3
Wallet address
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet address
Password:
Address for account - default
-------------------------------------
grin1hjfdh40xszkzah92lhxzcj526aka3kqtgyt2zdftpr2ujlxrhq9sszn9n9
The absolute path of the grin-wallet is
Chandrashekars-MacBook-Air:release chandrashekar$ pwd
/Users/chandrashekar/grin-wallet/target/release
Receiver
newwallet which is the local wallet
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -V
grin-wallet 5.0.0-beta.3
Wallet address
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet address
20201222 14:35:48.131 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:35:48.135 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error
calling get_version: ResponseError error: Cannot parse response
Password:
Address for account - default
-------------------------------------
grin1jjaqh0a8nu2f3vrg53200cvsutqtx5ry7u65e89vmgcjc778z4rs35wx5a
The absolute path for the newwallet is
Chandrashekars-MacBook-Air:newwallet chandrashekar$ pwd
/Users/chandrashekar/newwallet
The newwallet
was initalized through the following steps:
Chandrashekars-MacBook-Air:~ chandrashekar$ cd newwallet/
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet init -h
20201219 18:45:22.884 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201219 18:45:22.884 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Please enter a password for your new wallet
Password:
Confirm Password:
20201219 18:45:42.335 WARN grin_wallet_impls::lifecycle::seed - Generating wallet seed file at: /Users/chandrashekar/newwallet/wallet_data/wallet.seed
Your recovery phrase is:
**** ***** ***** *** ******* **** *** ***. **
Please back-up these words in a non-digital format.
Command 'init' completed successfully
Sending Money from the Sender using slatepack method
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet send --manual -d grin1jjaqh0a8nu2f3vrg53200cvsutqtx5ry7u65e89vmgcjc778z4rs35wx5a 0.1
Password:
/Users/chandrashekar/.grin/main/slatepack/9f1537d3-68ca-42eb-b69c-de11e85682cb.S1.slatepack
Slatepack data follows. Please provide this output to the other party
--- CUT BELOW THIS LINE ---
BEGINSLATEPACK. mmPYCMUkyJUsYRQ ddJ5ez2U6UN6YZ2 mrDVW75u4xj74Cf CLKYP4ZHY1P7PkN sUHyjrH579U12fU 3qzAUP1vDKDWmQ2 Fvmcyw68wbYxjtG CxF7CHa1UUpM1Vf h1NH2yFy4mjq5xM dAKmPkDsjnRNCLR M1u6SpULHTtaxjs xpZuebMddWYNVv8 4j51TstBizXPjZT TTK6VFMPDd6x3WG gbJxc99KYnhsyhA STWXdafDes1CCRT QNmeZXXSvnjxMZF Qe1V9XCh9YjzHmg y9Tacrg3BzCmr5r L3tcF2RwHVetG9f PSgteSrGm9Fyqxp 8XxtuHiYQVsSfPp 6wVz9fbQAYdpdHS cGvHjUELhbuz4Em jRFTM4dS6sHUU8H gTct9TbGXVv6x9j 7HYiHU2ExP8wCMB 7RBokPkq3K3d6CS 5gfWDVBom3gMdWh Wy18Gdz8tCA56Di fzGoKiuRBUf9YMo yGFJ6x9qeEi3jTC p6s4jQtT9Evxvpy TV25sENZkEiYvLd q6uKgFzBm4ENGwj D7r68XXr31DEsoy 95TThqHz5BqzQKc HpBEVS7nSQNuH6z xdfyEMYrdf1zVaU JeTPmxQeVc48X4Y 1GayboyPtQ3SpBG GNarkxJbsmLhQDW CKDKztrRrzcumEc JgkqTDjomR3nmY6 XNPH3KDQuBcFemM KA5pq94TuAPrwbo B8njxm4qGDEfEUZ TBDu5panqdHXY93 EjTsaEzDiwKPjJQ 3V1dGQTDrFA1mqV j7X8RuBvS19B6rw hcXy5ufDeGfvieC ykHxVAzU2KjPbEb n8QHgEfc. ENDSLATEPACK.
--- CUT ABOVE THIS LINE ---
Slatepack data was also output to
/Users/chandrashekar/.grin/main/slatepack/9f1537d3-68ca-42eb-b69c-de11e85682cb.S1.slatepack
The slatepack data is encrypted for the recipient only
Command 'send' completed successfully
The grin wallet info of the Sender
after sending the grins
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet info
Password:
20201222 14:47:01.227 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 14:47:02.027 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:47:02.035 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:47:02.036 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013143 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 4.853500000
Locked by previous transaction | 4.977000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
The transactions log of the Sender
wallet
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet txs
Password:
20201222 14:44:56.395 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 14:44:57.614 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 52% complete
20201222 14:44:58.256 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 97% complete
20201222 14:44:58.695 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:44:58.699 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:44:58.700 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013140
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
============================================================================================================================================================================================================================================================================
0 Received Tx 5d332c01-a3b8-4b09-8d6b-3a1e121e087c 2020-12-18 12:19:50 None true 2020-12-18 12:24:41 0 1 5.0 0.0 None 5.0 None 09ae1d1c81f90690bffa89abbfd0820ffa01b105eec6c3e2565af6aada2a88ec9e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:28:53 None true 2020-12-19 17:42:17 0 1 0.1 0.0 None 0.1 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Sent Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:35:18 None true 2020-12-19 17:42:16 1 2 4.977 5.0 None -0.023 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 52d0cd19-2db9-4185-bd97-1856f91dd97a 2020-12-20 06:45:17 None false None 0 1 0.1 0.0 None 0.1 None None None
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Sent Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:11:33 None false None 2 1 4.8535 4.977 0.0235 -0.1235 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 Sent Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:13:19 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 084499a928f54215e2fe76518cd26495d5e75d4b6443884d9e6eca9c641beb376c Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Receiving Money by the second wallet using slatepack method
Before receiving the grin
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet info
20201221 14:27:02.487 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201221 14:27:02.490 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201221 14:27:17.111 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201221 14:27:17.112 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
____ Wallet Summary Info - Account 'default' as of height 1010771 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.200000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
After receiving the slatepack for the grin and before finalization:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet receive --manual
20201222 14:50:08.057 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:50:08.058 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
Please paste your encoded slatepack message:
BEGINSLATEPACK. mmPYCMUkyJUsYRQ ddJ5ez2U6UN6YZ2 mrDVW75u4xj74Cf CLKYP4ZHY1P7PkN sUHyjrH579U12fU 3qzAUP1vDKDWmQ2 Fvmcyw68wbYxjtG CxF7CHa1UUpM1Vf h1NH2yFy4mjq5xM dAKmPkDsjnRNCLR M1u6SpULHTtaxjs xpZuebMddWYNVv8 4j51TstBizXPjZT TTK6VFMPDd6x3WG gbJxc99KYnhsyhA STWXdafDes1CCRT QNmeZXXSvnjxMZF Qe1V9XCh9YjzHmg y9Tacrg3BzCmr5r L3tcF2RwHVetG9f PSgteSrGm9Fyqxp 8XxtuHiYQVsSfPp 6wVz9fbQAYdpdHS cGvHjUELhbuz4Em jRFTM4dS6sHUU8H gTct9TbGXVv6x9j 7HYiHU2ExP8wCMB 7RBokPkq3K3d6CS 5gfWDVBom3gMdWh Wy18Gdz8tCA56Di fzGoKiuRBUf9YMo yGFJ6x9qeEi3jTC p6s4jQtT9Evxvpy TV25sENZkEiYvLd q6uKgFzBm4ENGwj D7r68XXr31DEsoy 95TThqHz5BqzQKc HpBEVS7nSQNuH6z xdfyEMYrdf1zVaU JeTPmxQeVc48X4Y 1GayboyPtQ3SpBG GNarkxJbsmLhQDW CKDKztrRrzcumEc JgkqTDjomR3nmY6 XNPH3KDQuBcFemM KA5pq94TuAPrwbo B8njxm4qGDEfEUZ TBDu5panqdHXY93 EjTsaEzDiwKPjJQ 3V1dGQTDrFA1mqV j7X8RuBvS19B6rw hcXy5ufDeGfvieC ykHxVAzU2KjPbEb n8QHgEfc. ENDSLATEPACK.
20201222 14:50:44.584 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:50:44.585 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
/Users/chandrashekar/newwallet/slatepack/9f1537d3-68ca-42eb-b69c-de11e85682cb.S2.slatepack
Slatepack data follows. Please provide this output to the other party
--- CUT BELOW THIS LINE ---
BEGINSLATEPACK. WXeU6Pr2gqxhuMF 4av3sACo9UHiA2L LjtWMpX7XjSuEE8 dowy33GeJgt2mZ6 mv6NtXurTYELqn7 ATa8aGz6ct8y38g wfnqTL2T7xuKqUv rnRYKtww48QCoSG knGhwrTHNj4bi5D 79MpJ89Hd3mBmn5 zsKVFxXxZVTNyNW HRBZ7NUUi4EqbfU uYv6147vGJR3P18 4sjwezi6of2G1eD ntoPwiQXqsfaCtp PyfAbxL6qiUhNwz dRAV2RKPpovrkjv SAbmyVaoR4KdfJx xfF9XSdTz4P7onq odVDuy9Vqz7MUF1 uD81adwYYUiHqbW 2HL96TGHKTGgsy3 5nJPyf9FnVpk5jX 5XyBZduUziDJRsy P3yh4eGBRUF4RQy NXLL9iueoGTm7Tk dXfw1HzvCBrB16y kzxkmfNEkfDvRT6 JFMAUc5zfnnQUmp MC6WxpLYx4oQqsG xUagt6xaD5PhtZ3 rttiZp5D7kgrbx6 LxnUhuZi2H2UoZZ 2J2xd6cGdRdRPav mJTRHdEqSLRG8Pg MxZRFX39U4dWyx3 RSQHotC2MnczLJE 3vxA3MaFGPnM4we hrNKJS9Rxgcnv81 5UzQdQYvt4dVD4z YW38ynbhHGCXRDY 88rEEA5wPJrUEwU ikRJbXne57wxJFT tPGstz4APu4qsSK vHh9xoSUE7fk9jV dZWtYpQ2kNNx76e xGJUx5C53E5rsCx yjC63d48gjaZ6sv fzuA63HFdyM1JYV wtXDMGBeLHZBG61 BRjes9DDyjHSeBF mY72bBf2KRmPcM3 4Nsm2KPoAjsnWhq MqcUz7eDmdtzwJm UZk2sHY3s1mDGGM DHrTfp5ahCb46QQ UQdTQ4Jx81vXTT4 dsAv5B9Vj55W8S7 d85uvuhPFGBPK4J tJr47ne1S9gACRt NVEgAFWXr42gquC YYU3YYYcHsWS9Gc 3v77HHuZu31iL2D BZPDPX7QhkKFnGq 747dZx1DykQwAWG tFMFohF184bN9VF yLE6BjLgQd58XSa PtSBMf38J9YPXMD vJXRSD3Uws2Cvmg 5J42M9DZrovEHhX Tse53L6VrQnNbVR z85xR76epxA31W8 RsqWpzrJTcoiLfn fSkUqcTFdgmLKxk ZJjep336BtVicgV tuJACy1qRHbKCut BDfxEhF676HgfEr 1yHG9Mct3HikZEM RJWBd7V5J15ruWw u75Bqss958mPXHX CtDDnadNhTBwwfB 5eT2LBhVLciTpzB hsMMFzHUKr18Vt8 jRsVmRZkuCont7t QnasPz8TVLEcAnD ZQYHFQ69QkeEJHJ B1wXfkK5YwwfiJ1 5shjaSYhPL7xdfc HYw4QtPVmv3bXis wPgHjCWL4m8CxBM vyzJFQmVFtBcYBc v3s4G5rFJXvCSbj uzVQcCrvBtn6Cfs CQ2cseGPGpnSCqw F3bkQM3RxP3XcxX toKrbXwC7qoApWc BtHRCXtonBXoFyF jRW96NXadZ7i8t7 Pg2VGhxrzFAQzGr rLe9uYnvdKVfXrL P5VPAd6JaPsGR4V 5rZpXZGXAbEMQBW M9Akqbch2QyD6Bi oFo681ZDwfJDLXb pKB5fTxwgsE7bjv FdYynW9hH3p1Ubd k2K2cQA72uZfVo4 Mnw93eNnCbHnRLA QF9KgDUoQPuL8z8 3FVEphCcYxSvNrr bMTYAhQ14LaMCCZ 2SBPX2JgednoUvD Tj2LAGTD9Nox4Nz JFZ82CERykJX28w 4ELXRUAgDxD5cRP R2evTZtkhmXFuwZ gFkvdGDuWDXL9xE S4QPbBvXmAU2K9T 4YeGL45r7f78ase AkHF4dpb9vmEgtk ysVzC8DCdSkgGXM MrDNjnAa6uA9ENX kUWsbKmUCw1XsC5 wpM6hK54anBTu82 oaMgHEQH3DmYBMK Du8Kw5zvhJVpojH vN4e7aMcG7yhEiY QBBVs318yDr5dzt M5F45zbDsQtFZsG qscgFZcKqeRjrZ5 VXra3mnuqCRoXq3 wbEFXcHE3Qtibk2 NnDkPVj6R5SDuhL 5EpFfK9uqnG. ENDSLATEPACK.
--- CUT ABOVE THIS LINE ---
Slatepack data was also output to
/Users/chandrashekar/newwallet/slatepack/9f1537d3-68ca-42eb-b69c-de11e85682cb.S2.slatepack
The slatepack data is encrypted for the recipient only
Command 'receive' completed successfully
After receiving the grin checking with the info command
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "http://127.0.0.1:3413" info
20201222 14:42:43.534 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:42:43.534 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 14:42:56.994 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 14:42:56.994 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
____ Wallet Summary Info - Account 'default' as of height 1010771 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.300000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
The transaction Log after receive
command is completed but before the finalize
command is invoked
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet txs
20201222 14:55:43.093 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:55:43.093 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 14:55:55.231 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 14:55:55.641 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 14:55:55.641 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
Transaction Log - Account 'default' - Block Height: 1010771
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The final step is cancelling the transaction:
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet cancel -t 9f1537d3-68ca-42eb-b69c-de11e85682cb
Password:
20201222 14:58:53.799 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 14:58:54.677 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:58:54.687 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:58:54.688 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Command 'cancel' completed successfully
Checking the wallet info after cancelling the transaction
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet info
Password:
20201222 14:59:43.396 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 14:59:44.457 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:59:44.468 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 14:59:44.469 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013160 ____
Confirmed Total | 4.977000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.000000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 4.977000000
Command 'info' completed successfully
The transaction Log of the sender shows a cancelled label against the corresponding transaction ID
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet txs
Password:
20201222 15:00:21.221 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 15:00:22.109 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 15:00:22.118 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 15:00:22.119 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013160
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
============================================================================================================================================================================================================================================================================
0 Received Tx 5d332c01-a3b8-4b09-8d6b-3a1e121e087c 2020-12-18 12:19:50 None true 2020-12-18 12:24:41 0 1 5.0 0.0 None 5.0 None 09ae1d1c81f90690bffa89abbfd0820ffa01b105eec6c3e2565af6aada2a88ec9e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:28:53 None true 2020-12-19 17:42:17 0 1 0.1 0.0 None 0.1 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Sent Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:35:18 None true 2020-12-19 17:42:16 1 2 4.977 5.0 None -0.023 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 52d0cd19-2db9-4185-bd97-1856f91dd97a 2020-12-20 06:45:17 None false None 0 1 0.1 0.0 None 0.1 None None None
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Sent Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:11:33 None false None 2 1 4.8535 4.977 0.0235 -0.1235 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 Sent Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:13:19 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 084499a928f54215e2fe76518cd26495d5e75d4b6443884d9e6eca9c641beb376c Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So we can conclude that the transaction is cancelled
The info of the receiver wallet after the cancellation is
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "http://127.0.0.1:3413" info
20201222 15:06:22.534 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 15:06:22.534 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 15:06:35.994 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 15:06:35.994 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
____ Wallet Summary Info - Account 'default' as of height 1010771 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.300000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
The transaction of the receiver wallet after cancelling the transaction is
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "http://127.0.0.1:3413" txs
20201222 15:08:50.039 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 15:08:50.039 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 15:09:03.888 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 15:09:04.295 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response
20201222 15:09:04.295 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
Transaction Log - Account 'default' - Block Height: 1010771
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
WARNING: Wallet failed to verify data. The above is from local cache and possibly invalid! (is your `grin server` offline or broken?)
Command 'txs' completed successfully
The sender wallet has cancelled the transaction and the corresponding details appear on the transaction logs of the sender.
But the receiver wallet does not know about the cancelled transactions. So the Walllet info shows the amount as to be finalized and the transaction logs show the amount as to be confirmed. This possible difference is due to the
fact that the local wallet does not sync with the grin-node
and can connect only to the grin-node.live
.
@chandrashekar10 thanks for this, regarding the receiver wallet not being aware of the cancellation, I see the output has line
WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
can you instead of
$ grin-wallet -r "http://127.0.0.1:3413" info
try to use
$ grin-wallet -r "https://grinnode.live:3413" info
and see if it manages to perform the scan and clear out the Await Finalization
balance?
Environment
Computer Model: MacBook Air 2019 model
Operating system: macOS Mojave version 10.14.6
Rustup version: rustc 1.48.0 (7eac88abb 2020-11-16)
Clang version: clang version 11.0.0
Target: x86_64-apple-darwin18.7.0
Thread model: posix
Open SSL: LibreSSL 2.6.5
Sender
grin-wallet which is the default wallet with the wallet version
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet -V
grin-wallet 5.0.0-beta.3
Wallet address
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet address
Password:
Address for account - default
-------------------------------------
grin1hjfdh40xszkzah92lhxzcj526aka3kqtgyt2zdftpr2ujlxrhq9sszn9n9
The absolute path of the grin-wallet is
Chandrashekars-MacBook-Air:release chandrashekar$ pwd
/Users/chandrashekar/grin-wallet/target/release
Receiver
newwallet which is the local wallet
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -V
grin-wallet 5.0.0-beta.3
Wallet address
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet address
20201222 14:35:48.131 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 14:35:48.135 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error
calling get_version: ResponseError error: Cannot parse response
Password:
Address for account - default
-------------------------------------
grin1jjaqh0a8nu2f3vrg53200cvsutqtx5ry7u65e89vmgcjc778z4rs35wx5a
The absolute path for the newwallet is
Chandrashekars-MacBook-Air:newwallet chandrashekar$ pwd
/Users/chandrashekar/newwallet
The newwallet
was initalized through the following steps:
Chandrashekars-MacBook-Air:~ chandrashekar$ cd newwallet/
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet init -h
20201219 18:45:22.884 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201219 18:45:22.884 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Please enter a password for your new wallet
Password:
Confirm Password:
20201219 18:45:42.335 WARN grin_wallet_impls::lifecycle::seed - Generating wallet seed file at: /Users/chandrashekar/newwallet/wallet_data/wallet.seed
Your recovery phrase is:
**** ***** ***** *** ******* **** *** ***. **
Please back-up these words in a non-digital format.
Command 'init' completed successfully
The details of the sender wallet using the info command
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet info
Password:
20201222 17:48:01.389 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 17:48:02.215 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:48:02.227 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:48:02.228 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013329 ____
Confirmed Total | 4.977000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.000000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 4.977000000
Command 'info' completed successfully
Sending Money from the Sender using slatepack method
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet send --manual -d grin1jjaqh0a8nu2f3vrg53200cvsutqtx5ry7u65e89vmgcjc778z4rs35wx5a 0.1
Password:
/Users/chandrashekar/.grin/main/slatepack/215c76bd-b12c-4d78-abe1-af18a319b762.S1.slatepack
Slatepack data follows. Please provide this output to the other party
--- CUT BELOW THIS LINE ---
BEGINSLATEPACK. 22og3kSnY7hX467 uw39erRS8MD2Q5y uN9XKF47pf2GaCk oSRXxVMv4MifGwW gXfFbN558ZuFai2 NJtMaB11Nr7tJPh JYLS9ZrnJn5kKZv b4F4Zs7TXKTAz3a FJ8p8vSPZpXj4N8 NiUFvgPp4BsyN5G oHReS8xaUSBTJms AfGxS8ns5pchUKd zcTfmTBMLjKAta2 W64G571eVXTQ5T7 HoVLZdNZXTzAeye kkTkjMPMTFCMJ7k hWdEK4p5h8Kabr6 Zw3PkuZFVLvEPh7 w8pnmSXf8p3ikB6 C3yCE7YnvQPEL23 CUAxWsea5KSXyuG Ysdi1wBtJ5NKLkG NbYGQnnezTDEmRp 1iDUqRsqy1Dn3B1 Wiw6J5p9MWKTsSc MxhAtHmBCnQN18q jUtWssKYJuF43E2 DFuQZs25pnjRZgY ZCqV656imFG8iNY kjHYz9dK3N7UHs2 p17cA45rogVEgz3 h35xQhx83bwQ8Sh BiB1fA3tbX7LW98 t22iapvsr3VrKLq g3dFGi1NriUT1pD fBnYm1Lv5GZR412 AQJhxfuowBJuFBv WyehGVmajwTshLe 515Mq53WWRTorZv 99Pu6L9zZkRPHaV L3jF8mdUdpgrsHa ffwduVen5SQ3cCf V8b6zNukTa4Ljtp zAGfGY4aCGw2nhp dY9ftkn1pSp7D1p uACRLq3BRk93NWH pNdcZESxHnjoLcC 5aaQErCE1Zfaabw h6DyQFmUWiFZist qy9HLEdDDhhVbdo LJHRTvDxa4SYJDn TvUekvFtAvoDccq xGw1H5p72m6tESW jdA9Hq4WuGXhXxu wvTqdQw. ENDSLATEPACK.
--- CUT ABOVE THIS LINE ---
Slatepack data was also output to
/Users/chandrashekar/.grin/main/slatepack/215c76bd-b12c-4d78-abe1-af18a319b762.S1.slatepack
The slatepack data is encrypted for the recipient only
Command 'send' completed successfully
The wallet info using the info
command after using the send command:
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet info
Password:
20201222 17:51:52.211 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 17:51:52.999 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:51:53.008 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:51:53.009 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013334 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 4.853500000
Locked by previous transaction | 4.977000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
We can see the difference between the two account Info’s.
The transaction log of the sender file
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet txs
Password:
20201222 17:54:10.357 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 17:54:11.166 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:54:11.175 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:54:11.176 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013335
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
============================================================================================================================================================================================================================================================================
0 Received Tx 5d332c01-a3b8-4b09-8d6b-3a1e121e087c 2020-12-18 12:19:50 None true 2020-12-18 12:24:41 0 1 5.0 0.0 None 5.0 None 09ae1d1c81f90690bffa89abbfd0820ffa01b105eec6c3e2565af6aada2a88ec9e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:28:53 None true 2020-12-19 17:42:17 0 1 0.1 0.0 None 0.1 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Sent Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:35:18 None true 2020-12-19 17:42:16 1 2 4.977 5.0 None -0.023 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 52d0cd19-2db9-4185-bd97-1856f91dd97a 2020-12-20 06:45:17 None false None 0 1 0.1 0.0 None 0.1 None None None
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Sent Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:11:33 None false None 2 1 4.8535 4.977 0.0235 -0.1235 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 Sent Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:13:19 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 084499a928f54215e2fe76518cd26495d5e75d4b6443884d9e6eca9c641beb376c Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 Sent Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:20:39 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 09f9a05a5dc01e334aa8201321689e82710d4cd5797b5a7ce7f7efcaadc8d8e809 Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
The money has been successfully sent by the Sender and we move on the next step.
Receiving Money by the second wallet using slatepack method
The receiver getting the slatepack and getting the grin transfer
Grin-wallet info before receiving the slate pack
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" info
20201222 17:20:32.737 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 17:20:32.737 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 17:20:57.426 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 17:21:00.549 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 17:21:04.573 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:21:04.584 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:21:04.585 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013306 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.200000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
Grin wallet transaction files before the transaction:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" txs
20201222 17:21:18.168 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 17:21:18.168 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 17:21:35.308 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 17:21:38.438 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 17:21:42.236 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:21:42.248 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 17:21:42.249 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013306
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
The receiver gets the grin manually
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet receive --manual
20201222 17:56:50.563 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 17:56:50.563 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
Please paste your encoded slatepack message:
BEGINSLATEPACK. 22og3kSnY7hX467 uw39erRS8MD2Q5y uN9XKF47pf2GaCk oSRXxVMv4MifGwW gXfFbN558ZuFai2 NJtMaB11Nr7tJPh JYLS9ZrnJn5kKZv b4F4Zs7TXKTAz3a FJ8p8vSPZpXj4N8 NiUFvgPp4BsyN5G oHReS8xaUSBTJms AfGxS8ns5pchUKd zcTfmTBMLjKAta2 W64G571eVXTQ5T7 HoVLZdNZXTzAeye kkTkjMPMTFCMJ7k hWdEK4p5h8Kabr6 Zw3PkuZFVLvEPh7 w8pnmSXf8p3ikB6 C3yCE7YnvQPEL23 CUAxWsea5KSXyuG Ysdi1wBtJ5NKLkG NbYGQnnezTDEmRp 1iDUqRsqy1Dn3B1 Wiw6J5p9MWKTsSc MxhAtHmBCnQN18q jUtWssKYJuF43E2 DFuQZs25pnjRZgY ZCqV656imFG8iNY kjHYz9dK3N7UHs2 p17cA45rogVEgz3 h35xQhx83bwQ8Sh BiB1fA3tbX7LW98 t22iapvsr3VrKLq g3dFGi1NriUT1pD fBnYm1Lv5GZR412 AQJhxfuowBJuFBv WyehGVmajwTshLe 515Mq53WWRTorZv 99Pu6L9zZkRPHaV L3jF8mdUdpgrsHa ffwduVen5SQ3cCf V8b6zNukTa4Ljtp zAGfGY4aCGw2nhp dY9ftkn1pSp7D1p uACRLq3BRk93NWH pNdcZESxHnjoLcC 5aaQErCE1Zfaabw h6DyQFmUWiFZist qy9HLEdDDhhVbdo LJHRTvDxa4SYJDn TvUekvFtAvoDccq xGw1H5p72m6tESW jdA9Hq4WuGXhXxu wvTqdQw. ENDSLATEPACK.
20201222 17:57:20.122 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 17:57:20.124 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
/Users/chandrashekar/newwallet/slatepack/215c76bd-b12c-4d78-abe1-af18a319b762.S2.slatepack
Slatepack data follows. Please provide this output to the other party
--- CUT BELOW THIS LINE ---
BEGINSLATEPACK. 9obNYr8f7EezGSR 5yJivBXjLcSbxfX E38VegMmFh1BrtU vRcn7hu4awkM2B5 PJT2Hh5D8Z1bQPo gxwS549tUqjC6Cc QeCYCPZ9aGhVAje aYnRBZ9m6Erd9AG 3wxWXX4jNxzGeFf LJMhfZVDfcbNcvB 3Cc9S1DJFzegz5p GByuYPjMA1gqvwU uYQ5Ex8tLRBASx3 w169koC3P9P1fRe Z1o6DZT4fSv2WFB PpiPc2fJfZtnU2L qnWN4trLRxMTHwy 6kaUjgUgpHUofPk BhjKQVFj2oABhFa jXeiq4vG76FohF1 FezrtzAvoxThLoh yA9XES1iev8RU9N 4Ri2RFaGpChmbtq d7xdcXaiMidq7Hn cELsrNESFiL6NkR 2qx8cSfANAUqTsC kP1Vuxd6h3yCRP5 t99objNKky7pwru XdpwqVtpmCWRWXb 3tdTCuaxoVQY1By kCTR1XqQE1Dc4Ty X4PuJFU3JqRDUxe 5X4YHH9ewJU9ez6 W9rKNHoRofDoijH NXGYGPn79TjFKvR pWLTPWypLoYkN6W MaWhJ3ZUGfynHdy WH3XtnUs5d2ADqR c5FT4gu132fMfm3 JjhKwEZQRaeLqmB 8A6vcJih5oCAtGT vupoi5HVGaVtQuk XfSnRtpsprJw6uB 6c2BJcKjEtSPcxs 2ozMeic7oNtvUC9 VJMBsS9qjCi1juw Wo559ZXUD9HnYbn BZnDk6gSi9DmkkQ 2tHwF3FnqTVxx3D REV2YSrDd6SKA8d vKD8SSPVe3tTCHA 851quyHdWdWzmeE 341yPsdgngWScv1 w9RoFnPui2JQS4Y N5gjJcR1XLcbxwP NjghHc8GY4juFp9 wSAv1tnPR4Pdc33 BaXSHx58BMXLfBb jZzkf3X5qrLWDjj wcSo78GwCoxZT9J sLZLXuYGSh3eYb4 72jxF3UDKku6Zyn GGhvCgUcrHsNeS6 ADFRhTAfrsydWcH Mu7oLYejYKzcBWR 8f7EupcspuQCxCy k6a44jqPTV5L38N dUjMEaeHXySpeoZ 6zGF1EbnreTh7JC 4MrG4n18kgR5aXi fbjb6rjVAkeNhp8 idzrWX5fwCLE5Y7 vJ6MfpdTTUWQwKx X7ECzTYWt9G6EYK 1vKd6gopYgY3Cfc 68ZapTmfv1YyTKk v7b6rpCjhqBXeBo 49HEfQmhtdViHJb zjppBkEQ6eEBsNo XpaK6ZfbossJuZw JQwfpu6REKHmXW7 s2FzbzkVjHcSZkH BN3mNAAE82jsC3o ubJa7LHXLicVZ2w RAdD7CWifq8bfc8 iaXxfoMDxRU7kX9 MhDHiPsvBGcocsW jqzck6651sTYFa7 wJuYDKNERp5PPLL aq7QSdFfDWnSLH9 f3XaVwPtdkvDM4F ampXosNKRLQqiNX bjHoJWgWrxEjKCh dwiT61WL7FHeRLK 6ia55F1cTmtZT8b f2oshoToyxBE8Wy 9dAoHZbCQv6pEtr 1iiUsrd4vF5MZg5 ADuTx7th26gKRcz nRagu6Cn3LeqrU4 fyzsjEreGcYGTMW gxhpbVGXrjfkXDf qEo1t96wEQG9FFF AvT32KNTkWv5zqQ PvdJ3tSF5W9bLqw T3o4YvmUrN32cTr AFCigCsyDova9hC RS55az5CmN2LV9m TQ4oYKA39SAp7NG QDJqgJUVSvnSbTu CxxzZ55ezo4EQUp YTVHb6H3gBQSZAH SgnatKvZgunhTVc 997FdiazwKTdfm4 zUbicfsJrtucuH5 JKJXQiF6GWmXpwk QB4v3b6F5yfjqPQ A5PF29fQAmP2UgF QAhHiTRG3vmK9c4 vscFeb88o1zET76 4QSwxitoQAzJxfD CBCSXXFGXCH4CeN TLrU6fFbakovikD JJZpcyTgxFmuekF zxgBgVejswB2MQT tWyznQQaniEg7iK hYP4XVXfdrbg. ENDSLATEPACK.
--- CUT ABOVE THIS LINE ---
Slatepack data was also output to
/Users/chandrashekar/newwallet/slatepack/215c76bd-b12c-4d78-abe1-af18a319b762.S2.slatepack
The slatepack data is encrypted for the recipient only
Command 'receive' completed successfully
The Wallet info after receiving the 0.1 grin. The amount of grin in awaiting finalization has increased to 0.3 grin because of the addition of the 0.1 grin.
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" info
20201222 18:03:47.943 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:03:47.943 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:04:00.632 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:04:05.151 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:04:09.259 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:04:09.271 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:04:09.272 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013344 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.300000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
The transaction record after the new 0.1 grin is
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" txs
20201222 18:05:31.827 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:05:31.827 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:05:48.483 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:05:53.250 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:05:57.122 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:05:57.133 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:05:57.134 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013345
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:27:20 None false None 0 1 0.1 0.0 None 0.1 None 0835f08cd12b6b4deef3bec0f045a0f42795a79724e58e8d669b50eeb6e1341dcb None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
The transaction has been completed successfully, but it has to be finalized by the sender for the grin to actually reach the wallet. But before finalization, the sender cancels the transaction.
Now cancelling the transaction
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet cancel -t 215c76bd-b12c-4d78-abe1-af18a319b762
Password:
20201222 18:09:13.254 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:09:14.177 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:09:14.187 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:09:14.189 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Command 'cancel' completed successfully
The wallet info after the transaction has been cancelled:
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet info
Password:
20201222 18:11:41.918 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:11:42.814 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:11:42.823 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:11:42.825 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013352 ____
Confirmed Total | 4.977000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.000000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 4.977000000
Command 'info' completed successfully
The transaction log of the sender after cancelling the transaction:
Chandrashekars-MacBook-Air:release chandrashekar$ ./grin-wallet txs
Password:
20201222 18:12:55.416 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:12:56.234 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:12:56.242 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:12:56.243 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013353
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
============================================================================================================================================================================================================================================================================
0 Received Tx 5d332c01-a3b8-4b09-8d6b-3a1e121e087c 2020-12-18 12:19:50 None true 2020-12-18 12:24:41 0 1 5.0 0.0 None 5.0 None 09ae1d1c81f90690bffa89abbfd0820ffa01b105eec6c3e2565af6aada2a88ec9e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:28:53 None true 2020-12-19 17:42:17 0 1 0.1 0.0 None 0.1 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e None
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Sent Tx 1a61c1e6-a122-4ba8-b848-4c22348d02c6 2020-12-19 17:35:18 None true 2020-12-19 17:42:16 1 2 4.977 5.0 None -0.023 None 09e663082f17b4a88b9802204788913635d5628b9d820334f074752c301612191e Yes
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 52d0cd19-2db9-4185-bd97-1856f91dd97a 2020-12-20 06:45:17 None false None 0 1 0.1 0.0 None 0.1 None None None
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Sent Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:11:33 None false None 2 1 4.8535 4.977 0.0235 -0.1235 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 Sent Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:13:19 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 084499a928f54215e2fe76518cd26495d5e75d4b6443884d9e6eca9c641beb376c Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 Sent Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:20:39 None false None 2 1 4.8535 4.977 0.0235 -0.1235 Yes 09f9a05a5dc01e334aa8201321689e82710d4cd5797b5a7ce7f7efcaadc8d8e809 Yes
- Cancelled
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
We can see that the transaction has been cancelled.
Now we should check the wallet info and transaction of the receiver after the cancellation:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" info
20201222 18:15:25.743 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:15:25.743 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:15:39.334 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:15:45.931 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:15:49.960 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:15:49.972 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:15:49.973 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013354 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.300000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
We do not see any indication of the cancellation.
The transaction log of the receiver after cancellation:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" txs
20201222 18:16:54.663 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:16:54.663 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:17:08.638 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:17:14.188 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:17:18.207 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:17:18.217 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:17:18.218 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013358
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:27:20 None false None 0 1 0.1 0.0 None 0.1 None 0835f08cd12b6b4deef3bec0f045a0f42795a79724e58e8d669b50eeb6e1341dcb None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
We can see that the final cancellation does not carry the cancelled label.
I then run a grin-wallet -r "https://grinnode.live:3413" scan
command to see if the transaction of the receiver wallet is cancelled:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" scan
After the scan I got the following message:
Command 'scan' completed successfully
The wallet is checked after running the scan
command
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" info
20201222 18:47:40.698 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:47:40.698 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:48:02.239 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:48:07.022 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:48:14.409 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:48:14.421 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:48:14.422 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013385 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.300000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
The transaction command gives the following output
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" txs
20201222 18:50:25.116 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 18:50:25.116 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 18:50:46.645 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 18:50:51.353 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 18:50:55.693 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:50:55.704 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 18:50:55.706 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013386
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:27:20 None false None 0 1 0.1 0.0 None 0.1 None 0835f08cd12b6b4deef3bec0f045a0f42795a79724e58e8d669b50eeb6e1341dcb None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
So, we can see that the cancellation does not reflect in the Receiver
wallet even after it has been allowed to scan with the grinnode.live
.
Now we need to run the cancel command individually on the Receiver
end as well.
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" cancel -t 215c76bd-b12c-4d78-abe1-af18a319b762
20201222 19:16:59.349 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 19:16:59.349 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 19:17:17.370 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 19:17:22.201 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 19:17:25.988 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:17:26.002 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:17:26.004 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Command 'cancel' completed successfully
Checking the info of the Receiver wallet after cancelling the transaction from the receiver side:
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" info
20201222 19:21:24.120 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 19:21:24.120 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 19:21:37.141 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 19:21:40.989 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 19:21:45.023 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:21:45.034 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:21:45.035 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
____ Wallet Summary Info - Account 'default' as of height 1013425 ____
Confirmed Total | 0.000000000
Awaiting Confirmation (< 10) | 0.000000000
Awaiting Finalization | 0.200000000
Locked by previous transaction | 0.000000000
-------------------------------- | -------------
Currently Spendable | 0.000000000
Command 'info' completed successfully
We can see that the amount in the awaiting finalization has reduced exactly by 0.1 grin
to reflect the cancellation.
Now we check the corresponding transaction Logs
Chandrashekars-MacBook-Air:newwallet chandrashekar$ grin-wallet -r "https://grinnode.live:3413" txs
20201222 19:26:45.088 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201222 19:26:45.088 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password:
20201222 19:26:59.893 WARN grin_wallet_libwallet::api_impl::owner - Attempted to update via kernel excess for transaction Some(516fac8d-31fe-43cb-ac46-f81517ad30d0), but kernel excess was not stored
20201222 19:27:03.041 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201222 19:27:07.611 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:27:07.624 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201222 19:27:07.626 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete
Transaction Log - Account 'default' - Block Height: 1013433
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Id Type Shared Transaction Id Creation Time TTL Cutoff Height Confirmed? Confirmation Time Num. Num. Amount Amount Fee Net Payment Kernel Tx
Inputs Outputs Credited Debited Difference Proof Data
========================================================================================================================================================================================================================================================================
0 Received Tx 516fac8d-31fe-43cb-ac46-f81517ad30d0 2020-12-20 06:58:48 None false None 0 1 0.1 0.0 None 0.1 None None None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Received Tx f96abf9e-4625-47f9-9c03-246b87751574 2020-12-20 07:09:53 None false None 0 1 0.1 0.0 None 0.1 None 090b62a932fa278ec6803f8e9722094f23764379c44ef9eb38291332dc8bebf36e None
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Received Tx 9f1537d3-68ca-42eb-b69c-de11e85682cb 2020-12-22 09:20:44 None false None 0 1 0.1 0.0 None 0.1 None 096f7f3994f2f978c519a0fcf04a7b80e4c852c285791cabd1804f71ff85931824 None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Received Tx 215c76bd-b12c-4d78-abe1-af18a319b762 2020-12-22 12:27:20 None false None 0 1 0.1 0.0 None 0.1 None 0835f08cd12b6b4deef3bec0f045a0f42795a79724e58e8d669b50eeb6e1341dcb None
- Cancelled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 'txs' completed successfully
From the transaction logs we can see that the transaction has been cancelled. The label cancelled
appears at the relevant place in the transaction log.
The sender wallet has cancelled the transaction and the corresponding details appear on the transaction logs of the sender.
But the receiver wallet does not know about the cancelled transactions. So the Walllet info shows the amount as to be finalized and the transaction logs show the amount as to be confirmed. Even after running the grin-wallet scan
command, we could not see the cancellation. So finally, we resort to cancelling the transaction on the receiver side as well. This cancels the transaction. So, we see that the cancel transaction had to be applied twice, once on the sender side and once on the receiver side to cancel one single transaction.
Thank you @chandrashekar10 for revising this! I discussed with @Paouky and the receiver not knowing the sender has cancelled the transaction is an expected behaviour so it looks like everything is working. Thank you for great work!
Description The goal of this test is to test the procedure of cancelling the transaction.
Prerequisites:
receive
the transaction but before you finalize run thecancel
commandExpected result:
Expect the outputs locked by the transaction to be free. Document your findings by providing logs and outputs of commands such as
txs
andinfo
etc.Include the output of command
and your environment