taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

testing-corrupt-withdrawal-coin-sel.rst (847B)


      1 .. ts:op:: testingCorruptWithdrawalCoinSel
      2 
      3   Corrupt the denomination selection of a withdrawal transaction by
      4   replacing the first selected denomination's public key hash with a
      5   random value, in order to test the wallet's error handling.
      6 
      7   **Request:**
      8 
      9     The request must be a `TestingCorruptWithdrawalCoinSelRequest`
     10     object.
     11 
     12   **Response:**
     13 
     14     On success, the result is an empty object.
     15 
     16   **Side effects:**
     17 
     18     Intentionally corrupts the withdrawal's coin selection in the
     19     wallet database (test failure injection).
     20 
     21   **Details:**
     22 
     23     The ``transactionId`` must identify a withdrawal transaction.
     24     Withdrawal groups without a denomination selection are left
     25     unchanged.
     26 
     27 .. ts:def:: TestingCorruptWithdrawalCoinSelRequest
     28 
     29   interface TestingCorruptWithdrawalCoinSelRequest {
     30     transactionId: TransactionIdStr;
     31   }