feat: allow wallet type from db to have preference (#6245) #1464
37 tests run, 33 passed, 0 skipped, 4 failed.
Annotations
Check failure on line 1 in feature:175:5
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 8, current status is 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 SEED
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_ONE_SIDED_UNCONFIRMED and not cancelled
Step failed:
Defined: tests/features/WalletFFI.feature:205:9
Matched: integration_tests/tests/steps/wallet_steps.rs:514:1
Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 8, current status is 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: 18307,
base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_47777/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18307",
wallet: Mutex {
data: Wallet {
ptr: 0x00007fba4004bc90,
liveness_data: Mutex {
data: {
"0c937f2901d7588ddd918ca019d6ded168f2fc8578fda95a5ce1daca26d805131e": ContactsLivenessData {
ptr: 0x00007fbe9801b010,
},
},
poisoned: false,
..
},
balance: CachedBalance {
available: 2400000,
time_locked: 0,
pending_incoming: 1399330,
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: {
"0c937f2901d7588ddd918ca019d6ded168f2fc8578fda95a5ce1daca26d805131e": [
7864690328449619503,
5481407032660473893,
],
"e4f813d90361e62106af9ed4a407a5e629314fb244fb23031c5fc3a215bb265937": [
7864690328449619503,
5481407032660473893,
],
},
errors: [],
last_imported_tx_ids: [],
last_merge_miner_response: Null,
}
Check failure on line 1 in feature:175:5
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 8, current status is 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 SEED
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_ONE_SIDED_UNCONFIRMED and not cancelled
Step failed:
Defined: tests/features/WalletFFI.feature:205:9
Matched: integration_tests/tests/steps/wallet_steps.rs:514:1
Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 8, current status is 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: 18101,
base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_47777/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18101",
wallet: Mutex {
data: Wallet {
ptr: 0x0000560c116b4150,
liveness_data: Mutex {
data: {
"72d03d46248f682f3623fde8566d075eb491ce6b7b8b6052caa728a7c19e555736": ContactsLivenessData {
ptr: 0x00007fbab0065a00,
},
},
poisoned: false,
..
},
balance: CachedBalance {
available: 2400000,
time_locked: 0,
pending_incoming: 1399330,
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: {
"72d03d46248f682f3623fde8566d075eb491ce6b7b8b6052caa728a7c19e555736": [
9593756312933528501,
7669172759951988486,
],
"9c859078fe86ee510b0188a6468f5a0bf830f494737eb5a9621fb4ef8bf9a42966": [
9593756312933528501,
7669172759951988486,
],
},
errors: [],
last_imported_tx_ids: [],
last_merge_miner_response: Null,
}
Check failure on line 1 in feature:212:5
github-actions / JUnit Test Report
feature:212:5.Scenario: As a client I want to receive a one-sided transaction: tests/features/WalletFFI.feature:212:5
Step panicked. Captured output: base nodes not successfully synchronized at height 12, {"SEED": 12, "BASE1": 12, "BASE2": 0}
Raw output
Scenario: As a client I want to receive 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 a base node BASE2 connected to all seed nodes
When I have wallet SENDER connected to base node BASE1
And I have a ffi wallet FFI_RECEIVER connected to base node BASE2
When I have mining node MINER connected to base node BASE1 and wallet SENDER
When mining node MINER mines 10 blocks
Then I wait for wallet SENDER to have at least 5000000 uT
Then I send a one-sided transaction of 1000000 uT from SENDER to FFI_RECEIVER at fee 20
When mining node MINER mines 2 blocks
Then all nodes are at height 12
Step failed:
Defined: tests/features/WalletFFI.feature:223:9
Matched: integration_tests/tests/steps/node_steps.rs:180:1
Step panicked. Captured output: base nodes not successfully synchronized at height 12, {"SEED": 12, "BASE1": 12, "BASE2": 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_RECEIVER": WalletFFI {
name: "FFI_RECEIVER",
port: 18453,
base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_47777/Wallet FFI/As a client I want to receive a one-sided transaction/ffi_wallets/FFI_RECEIVER_port_18453",
wallet: Mutex {
data: Wallet {
ptr: 0x0000560c111df4d0,
liveness_data: Mutex {
data: {},
poisoned: false,
..
},
balance: CachedBalance {
available: 0,
time_locked: 0,
pending_incoming: 0,
pending_outgoing: 0,
},
},
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",
},
seed_nodes: [
"SEED",
],
wallet_tx_ids: {
"10e4a6e355bd55c0c7320338fd92278cab2fc29ba71e7eccee40c99f94a8043661": [
4168214541706880604,
],
"1a09ccd9fe4865fb54fd91143ddaf1d6932e2d1121e2592e0d1f0e1030fdb3308a": [
4168214541706880604,
],
},
errors: [],
last_imported_tx_ids: [],
last_merge_miner_response: Null,
}
Check failure on line 1 in feature:212:5
github-actions / JUnit Test Report
feature:212:5.Scenario: As a client I want to receive a one-sided transaction: tests/features/WalletFFI.feature:212:5
Step panicked. Captured output: base nodes not successfully synchronized at height 12, {"SEED": 12, "BASE1": 12, "BASE2": 0}
Raw output
Scenario: As a client I want to receive 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 a base node BASE2 connected to all seed nodes
When I have wallet SENDER connected to base node BASE1
And I have a ffi wallet FFI_RECEIVER connected to base node BASE2
When I have mining node MINER connected to base node BASE1 and wallet SENDER
When mining node MINER mines 10 blocks
Then I wait for wallet SENDER to have at least 5000000 uT
Then I send a one-sided transaction of 1000000 uT from SENDER to FFI_RECEIVER at fee 20
When mining node MINER mines 2 blocks
Then all nodes are at height 12
Step failed:
Defined: tests/features/WalletFFI.feature:223:9
Matched: integration_tests/tests/steps/node_steps.rs:180:1
Step panicked. Captured output: base nodes not successfully synchronized at height 12, {"SEED": 12, "BASE1": 12, "BASE2": 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_RECEIVER": WalletFFI {
name: "FFI_RECEIVER",
port: 18230,
base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_47777/Wallet FFI/As a client I want to receive a one-sided transaction/ffi_wallets/FFI_RECEIVER_port_18230",
wallet: Mutex {
data: Wallet {
ptr: 0x0000560c11a38330,
liveness_data: Mutex {
data: {},
poisoned: false,
..
},
balance: CachedBalance {
available: 0,
time_locked: 0,
pending_incoming: 0,
pending_outgoing: 0,
},
},
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",
},
seed_nodes: [
"SEED",
],
wallet_tx_ids: {
"2c09850573c0a649f32f5bccb2bf2bec794311ba01274c8e2ce6c04faf8ffb348b": [
14580143078179631512,
],
"bef8255c7a32a83016f801b999b1e9b8f6601aa96ae85d388575454cd0c55d0f5c": [
14580143078179631512,
],
},
errors: [],
last_imported_tx_ids: [],
last_merge_miner_response: Null,
}