Grinnode-live / 2020-grin-bug-bash-challenge

Finding bugs in Grin-Wallet & Grin-nodes for a bounty prior to Grin fork v5.
3 stars 1 forks source link

[GRIN-Wallet][Owner API] testing the cancel transaction method #30

Open marekyggdrasil opened 3 years ago

marekyggdrasil commented 3 years ago

Description Testing the cancel transaction method from the Owner API

Prerequisites

  1. GRIN-Node
  2. GRIN-Wallet

Test procedure

  1. Run GRIN-Wallet in Owner API listener mode
  2. Use node.js or python to run a encrypted request to cancel transaction method

Note that transactions can be cancelled by transaction log id or slate id (call with either set to Some, not both)

Expected result:

Transaction should be canceled. Check the following:

  1. Setting the transaction status to either TxSentCancelled or TxReceivedCancelled
  2. Deleting all change outputs or recipient outputs associated with the transaction
  3. Setting the status of all associated inputs from Locked to Spent so they can be used in new transactions.

Provide requests and response full payloads as well as wallet and node logs.

Include the output of command

grin-wallet -V

and your environment

uname -a