Skip to content

fix: ledger (#6737) #3124

fix: ledger (#6737)

fix: ledger (#6737) #3124

GitHub Actions / JUnit Test Report failed Jan 13, 2025 in 0s

40 tests run, 36 passed, 0 skipped, 4 failed.

Annotations

Check failure on line 1 in feature:9:3

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:9:3.Scenario: As a wallet send to a wallet connected to a different base node: tests/features/WalletTransfer.feature:9:3

Step panicked. Captured output: Wallet WALLET_B failed to have at least 5T, it ended with 0T
Raw output
Scenario: As a wallet send to a wallet connected to a different base node
     Given I have a seed node SEED_A
     When I have a seed node SEED_B
     When I have a base node NODE_A connected to all seed nodes
     When I have a base node NODE_B connected to all seed nodes
     When I have wallet WALLET_A with 10T connected to base node NODE_A
     When I have wallet WALLET_B connected to base node NODE_B
     When I wait 5 seconds
     When I transfer 5T from WALLET_A to WALLET_B
     When I mine 4 blocks on SEED_A
     Then wallet WALLET_A has 5T
     When I wait 5 seconds
     When wallet WALLET_B has 5T
      Step failed:
      Defined: tests/features/WalletTransfer.feature:21:5
      Matched: integration_tests/tests/steps/wallet_steps.rs:1522:1
      Step panicked. Captured output: Wallet WALLET_B failed to have at least 5T, it ended with 0T
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "temp_miner": MinerProcess {
                  name: "temp_miner",
                  base_node_name: "NODE_A",
                  wallet_name: "WALLET_A",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {},
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "WALLET_A": "NODE_A",
              "WALLET_B": "NODE_B",
          },
          seed_nodes: [
              "SEED_A",
              "SEED_B",
          ],
          wallet_tx_ids: {
              "H4LG6WJNEfEsto7LwUQga9Nh5L819ZRAtqqbhwA2jt19a2U7huNuzsuxpuP22d4nDXEXobvEFfhntVc3hZf4qMkU61U": [
                  10862116711044534751,
              ],
              "H428TcaHGdX4Hpjaok1Ms6XEiDeMRHT6TkULWzsvmoU9Npm59am8JHHnn4QvY9pTR5gNG2QVAtnfJbVbbYPkJf9z1eF": [
                  10862116711044534751,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }

Check failure on line 1 in feature:9:3

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:9:3.Scenario: As a wallet send to a wallet connected to a different base node: tests/features/WalletTransfer.feature:9:3

Step panicked. Captured output: Wallet WALLET_B failed to have at least 5T, it ended with 0T
Raw output
Scenario: As a wallet send to a wallet connected to a different base node | Retry attempt: 1/2
     Given I have a seed node SEED_A
     When I have a seed node SEED_B
     When I have a base node NODE_A connected to all seed nodes
     When I have a base node NODE_B connected to all seed nodes
     When I have wallet WALLET_A with 10T connected to base node NODE_A
     When I have wallet WALLET_B connected to base node NODE_B
     When I wait 5 seconds
     When I transfer 5T from WALLET_A to WALLET_B
     When I mine 4 blocks on SEED_A
     Then wallet WALLET_A has 5T
     When I wait 5 seconds
     When wallet WALLET_B has 5T
      Step failed:
      Defined: tests/features/WalletTransfer.feature:21:5
      Matched: integration_tests/tests/steps/wallet_steps.rs:1522:1
      Step panicked. Captured output: Wallet WALLET_B failed to have at least 5T, it ended with 0T
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "temp_miner": MinerProcess {
                  name: "temp_miner",
                  base_node_name: "NODE_A",
                  wallet_name: "WALLET_A",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {},
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "WALLET_A": "NODE_A",
              "WALLET_B": "NODE_B",
          },
          seed_nodes: [
              "SEED_A",
              "SEED_B",
          ],
          wallet_tx_ids: {
              "H43ukur3xdQfwMmJ3uFU1oP2uSTzw6jX2shbByJn8ZKH5kEwMmai1AehgxqhLsQj3cE5SatM1RYHAGk1mZJqLoBM3Vp": [
                  1067018810256714512,
              ],
              "H4JYx32wSouXGmbCgkoEYVkP8Qz2oJPvQfxX4JKQiJtWceBHSum76JjVYL5PSuBZvXLYFyzi8Qje6M8URQA8aXhKKsD": [
                  1067018810256714512,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }

Check failure on line 1 in feature:175:5

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:175:5.Scenario: As a client I want to send a one-sided transaction: tests/features/WalletFFI.feature:175:5

Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
Raw output
Scenario: As a client I want to send a one-sided transaction
     Given I have a seed node SEED
     When I have a base node BASE1 connected to all seed nodes
     When I have wallet SENDER connected to base node BASE1
     And I have a ffi wallet FFI_WALLET connected to base node BASE1
     When I have wallet RECEIVER connected to base node BASE1
     When I add contact with alias ALIAS1 and address of SENDER to ffi wallet FFI_WALLET
     When I add contact with alias ALIAS2 and address of RECEIVER to ffi wallet FFI_WALLET
     When I have mining node MINER connected to base node BASE1 and wallet SENDER
     When mining node MINER mines 10 blocks
     Then all nodes are at height 10
     Then I wait for wallet SENDER to have at least 129239250000 uT
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     Then wallet SENDER has at least 2 transactions that are all TRANSACTION_STATUS_BROADCAST and not cancelled
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 10 blocks
     Then all nodes are at height 20
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_MINED
     Then I wait for ffi wallet FFI_WALLET to have at least 4000000 uT
     And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 5 via one-sided transactions
     Then ffi wallet FFI_WALLET detects AT_LEAST 3 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 2 blocks
     Then all nodes are at height 22
     Then wallet RECEIVER has at least 1 transactions that are all TRANSACTION_STATUS_MINED_UNCONFIRMED and not cancelled
      Step failed:
      Defined: tests/features/WalletFFI.feature:205:9
      Matched: integration_tests/tests/steps/wallet_steps.rs:517:1
      Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "BASE1",
                  wallet_name: "SENDER",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {
              "FFI_WALLET": WalletFFI {
                  name: "FFI_WALLET",
                  port: 18441,
                  base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_60366/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18441",
                  wallet: Mutex {
                      data: Wallet {
                          ptr: 0x000055f9320ab4e0,
                          liveness_data: Mutex {
                              data: {
                                  "H4DCuHWPftbN3UchmNBkzWDEWvbc1iATBd1MzWJHkPctPvoJdnCnjd3Mp3pRa6FZEvyL4xaZ2EZGSXBsFP7B5PEbT2T": ContactsLivenessData {
                                      ptr: 0x00007fadd8041da0,
                                  },
                                  "H4Di9UtPqL1DLndAebWZmzrYnkbbMGEQJiAr6B548UDCRXuyW8LbxPeT87WHncsm85TqKaBDd9yeyU5XhyLzNeUpZ8K": ContactsLivenessData {
                                      ptr: 0x00007fadd0031420,
                                  },
                              },
                              poisoned: false,
                              ..
                          },
                          balance: CachedBalance {
                              available: 2400000,
                              time_locked: 0,
                              pending_incoming: 0,
                              pending_outgoing: 2400000,
                          },
                      },
                      poisoned: false,
                      ..
                  },
              },
          },
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "SENDER": "BASE1",
              "RECEIVER": "BASE1",
          },
          seed_nodes: [
              "SEED",
          ],
          wallet_tx_ids: {
              "H4DCuHWPftbN3UchmNBkzWDEWvbc1iATBd1MzWJHkPctPvoJdnCnjd3Mp3pRa6FZEvyL4xaZ2EZGSXBsFP7B5PEbT2T": [
                  16582843842504082600,
                  8955223490432002168,
              ],
              "H4GijDpLwmDi2diCer6h8J9E6e8JdWD9nJFe1d82czLQ8LPnj59neucUbo1RJEpeAsot9exEkUq7jZAGdgkpcB4pv7E": [
                  16582843842504082600,
                  8955223490432002168,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }

Check failure on line 1 in feature:175:5

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:175:5.Scenario: As a client I want to send a one-sided transaction: tests/features/WalletFFI.feature:175:5

Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
Raw output
Scenario: As a client I want to send a one-sided transaction | Retry attempt: 1/2
     Given I have a seed node SEED
     When I have a base node BASE1 connected to all seed nodes
     When I have wallet SENDER connected to base node BASE1
     And I have a ffi wallet FFI_WALLET connected to base node BASE1
     When I have wallet RECEIVER connected to base node BASE1
     When I add contact with alias ALIAS1 and address of SENDER to ffi wallet FFI_WALLET
     When I add contact with alias ALIAS2 and address of RECEIVER to ffi wallet FFI_WALLET
     When I have mining node MINER connected to base node BASE1 and wallet SENDER
     When mining node MINER mines 10 blocks
     Then all nodes are at height 10
     Then I wait for wallet SENDER to have at least 129239250000 uT
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     Then wallet SENDER has at least 2 transactions that are all TRANSACTION_STATUS_BROADCAST and not cancelled
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 10 blocks
     Then all nodes are at height 20
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_MINED
     Then I wait for ffi wallet FFI_WALLET to have at least 4000000 uT
     And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 5 via one-sided transactions
     Then ffi wallet FFI_WALLET detects AT_LEAST 3 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 2 blocks
     Then all nodes are at height 22
     Then wallet RECEIVER has at least 1 transactions that are all TRANSACTION_STATUS_MINED_UNCONFIRMED and not cancelled
      Step failed:
      Defined: tests/features/WalletFFI.feature:205:9
      Matched: integration_tests/tests/steps/wallet_steps.rs:517:1
      Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "BASE1",
                  wallet_name: "SENDER",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {
              "FFI_WALLET": WalletFFI {
                  name: "FFI_WALLET",
                  port: 18042,
                  base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_60366/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18042",
                  wallet: Mutex {
                      data: Wallet {
                          ptr: 0x000055f930fe7dc0,
                          liveness_data: Mutex {
                              data: {
                                  "H4J2FmGxLr3cbHmWqxwbHDxxpA4fb68PSmQ6JN6nR9hVgyEA4TPyyHsE6QP2sb8dqT1DPsYnuUPwyi5nwQqRaeLXGSL": ContactsLivenessData {
                                      ptr: 0x00007fad9c0c6ce0,
                                  },
                                  "H4KZswn5g1ARbnAGMx225pqqCQREtQ8Sya619Jfdn4udn6xzwbzDWn6MAQw2wBJ7NZSfQtLvTLDukSyS92ESq6N7Z7A": ContactsLivenessData {
                                      ptr: 0x00007fab6401e200,
                                  },
                              },
                              poisoned: false,
                              ..
                          },
                          balance: CachedBalance {
                              available: 2400000,
                              time_locked: 0,
                              pending_incoming: 0,
                              pending_outgoing: 2400000,
                          },
                      },
                      poisoned: false,
                      ..
                  },
              },
          },
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "SENDER": "BASE1",
              "RECEIVER": "BASE1",
          },
          seed_nodes: [
              "SEED",
          ],
          wallet_tx_ids: {
              "H4J2FmGxLr3cbHmWqxwbHDxxpA4fb68PSmQ6JN6nR9hVgyEA4TPyyHsE6QP2sb8dqT1DPsYnuUPwyi5nwQqRaeLXGSL": [
                  3908106510476475675,
                  852355407236758373,
              ],
              "H4852dMUyakjBjeQHUBHo4k8KsyuNky8ZYxFHFwfPW4EgdPV72wLq3WchSFaF4YZmuKhEUL4WaLUsnDsRzhui3KtJ5X": [
                  3908106510476475675,
                  852355407236758373,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }