• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 15280118615
62%

Build:
DEFAULT BRANCH: development
Ran 27 May 2025 09:57PM UTC
Jobs 1
Files 685
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 May 2025 04:01PM UTC coverage: 73.59% (+0.4%) from 73.233%
15280118615

push

github

web-flow
feat: add base node HTTP wallet service (#7061)

Description
---
Added a new HTTP server for base node that exposes some wallet related
query functionality.

Current new endpoints (examples on **esmeralda** network):
 - http://127.0.0.1:9005/get_tip_info
 - http://127.0.0.1:9005/get_header_by_height?height=6994
 - http://127.0.0.1:9005/get_height_at_time?time=1747739959

Default ports for http service (by network):
```
MainNet: 9000,
StageNet: 9001,
NextNet: 9002,
LocalNet: 9003,
Igor: 9004,
Esmeralda: 9005,
```

New configuration needs to be set in base node:
```toml
[base_node.http_wallet_query_service]
port = 9000
external_address = "http://127.0.0.1:9000" # this is optional, but if not set, when someone requests for the external address, just returns a None, so wallets can't contact base node
```

Motivation and Context
---


How Has This Been Tested?
---
### Manually

#### Basic test
1. Build new base node
2. Set base node configuration by adding the following:
```toml
[base_node.http_wallet_query_service]
port = 9000
external_address = "http://127.0.0.1:9000"
```
This way we set the port and external address (which is sent to wallet
client when requesting, so in real world it must be public)
3. Set logging level of base node logs to DEBUG
4. Start base node
5. Build and start console wallet
6. See that it is still able to synchronize
7. Check logs of base node (with `tail -f ...` command for instance) and
see that the HTTP endpoints are used

#### Use RPC fallback test
1. Build new base node
2. Set base node configuration by adding the following:
```toml
[base_node.http_wallet_query_service]
port = 9000
external_address = "http://127.0.0.1:9001"
```
This way we set the port and external address (which is sent to wallet
client when requesting, so in real world it must be public)
3. Set logging level of base node logs to DEBUG
4. Start base node
5. Build and start console wallet
6. See that it is still able to synchronize
7. Check logs of base nod... (continued)

9 of 114 new or added lines in 4 files covered. (7.89%)

1592 existing lines in 62 files now uncovered.

82227 of 111736 relevant lines covered (73.59%)

272070.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
13.33
0.83% base_layer/core/src/base_node/rpc/mod.rs
9
51.19
-0.34% base_layer/core/src/base_node/rpc/service.rs
13
0.0
base_layer/core/src/base_node/rpc/models/get_tip_info.rs
76
0.0
base_layer/core/src/base_node/rpc/query_service.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
13.33
0.83% base_layer/core/src/base_node/rpc/mod.rs
1
99.39
0.02% base_layer/core/src/test_helpers/mod.rs
1
69.0
-0.12% base_layer/wallet/src/storage/sqlite_db/wallet.rs
1
74.71
-0.15% base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
1
85.47
-0.04% base_layer/wallet/src/transaction_service/storage/sqlite_db.rs
1
99.75
-0.0% comms/core/src/connectivity/test.rs
2
51.85
7.57% common_sqlite/src/sqlite_connection_pool.rs
2
99.41
0.01% comms/core/src/builder/tests.rs
2
90.8
-0.25% comms/core/src/multiplexing/yamux.rs
2
81.75
0.0% comms/core/src/protocol/rpc/client/mod.rs
2
86.11
0.0% comms/core/src/protocol/rpc/test/mock.rs
3
75.59
-2.36% base_layer/core/src/base_node/state_machine_service/states/header_sync.rs
3
0.0
-4.35% base_layer/core/src/base_node/sync/horizon_state_sync/events.rs
3
79.41
-0.52% base_layer/core/src/test_helpers/blockchain.rs
3
60.62
-1.33% comms/core/src/connectivity/requester.rs
3
82.86
-4.29% comms/dht/src/config.rs
3
0.0
-100.0% infrastructure/storage/src/key_val_store/error.rs
3
84.55
-2.44% infrastructure/storage/src/key_val_store/lmdb_database.rs
5
0.0
0.0% common_sqlite/src/error.rs
5
94.93
-0.94% comms/dht/src/outbound/broadcast.rs
6
72.81
-2.76% base_layer/core/src/blocks/accumulated_data.rs
6
90.34
-4.14% base_layer/p2p/src/config.rs
6
46.36
-1.99% base_layer/wallet/src/storage/database.rs
6
67.87
-1.14% base_layer/wallet/src/transaction_service/storage/database.rs
6
91.57
0.71% comms/core/src/peer_manager/identity_signature.rs
7
0.0
-1.52% base_layer/contacts/src/contacts_service/service.rs
7
85.42
-14.58% base_layer/core/src/base_node/sync/hooks.rs
7
69.23
6.07% comms/core/src/peer_manager/peer_features.rs
10
20.0
20.0% comms/core/src/peer_manager/error.rs
11
0.0
-13.58% base_layer/contacts/src/contacts_service/types/message.rs
11
20.0
6.36% comms/core/src/test_utils/peer_manager.rs
11
77.17
-8.66% infrastructure/storage/src/key_val_store/hmap_database.rs
12
59.47
0.33% base_layer/wallet/src/transaction_service/service.rs
12
64.29
0.87% comms/dht/src/network_discovery/ready.rs
14
72.03
-1.88% comms/core/src/peer_manager/node_distance.rs
16
90.94
1.91% comms/core/src/net_address/mutliaddresses_with_stats.rs
16
87.32
0.66% comms/dht/src/actor.rs
16
79.31
1.21% comms/dht/src/rpc/service.rs
17
63.8
-10.43% base_layer/core/src/chain_storage/async_db.rs
18
64.86
-0.65% base_layer/core/src/chain_storage/blockchain_database.rs
18
88.68
1.21% base_layer/p2p/src/services/liveness/service.rs
18
60.74
-1.83% comms/core/src/builder/mod.rs
19
83.09
-0.82% common_sqlite/src/connection.rs
20
44.34
-3.45% base_layer/wallet/src/storage/sqlite_utilities/mod.rs
26
0.0
-14.61% base_layer/contacts/src/contacts_service/handle.rs
28
0.0
-43.75% base_layer/core/src/base_node/state_machine_service/states/sync_decide.rs
33
0.0
-97.06% infrastructure/storage/src/key_val_store/key_val_store.rs
36
68.71
-1.57% base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
40
86.83
6.27% comms/core/src/net_address/multiaddr_with_stats.rs
41
63.76
-0.03% comms/dht/src/connectivity/mod.rs
43
0.0
-69.35% base_layer/contacts/src/contacts_service/types/message_builder.rs
45
24.44
-50.0% base_layer/core/src/base_node/state_machine_service/states/horizon_state_sync.rs
47
59.18
0.0% base_layer/core/src/base_node/state_machine_service/states/listening.rs
48
72.46
1.11% comms/dht/src/network_discovery/discovering.rs
51
0.0
-68.0% infrastructure/storage/src/key_val_store/cached_store.rs
53
71.65
2.48% comms/core/src/peer_manager/peer.rs
60
86.29
7.84% comms/core/src/peer_manager/manager.rs
67
34.94
-16.14% base_layer/core/src/base_node/sync/rpc/service.rs
77
21.5
-1.18% base_layer/p2p/src/initialization.rs
109
14.29
-48.66% base_layer/core/src/base_node/sync/rpc/sync_utxos_task.rs
160
58.03
0.92% comms/core/src/connectivity/manager.rs
291
0.0
-47.86% base_layer/core/src/base_node/sync/horizon_state_sync/synchronizer.rs
Jobs
ID Job ID Ran Files Coverage
1 15280118615.1 27 May 2025 09:57PM UTC 685
73.59
GitHub Action Run
Source Files on build 15280118615
  • Tree
  • List 685
  • Changed 100
  • Source Changed 55
  • Coverage Changed 89
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15280118615
  • 13820087 on github
  • Prev Build on development (#15241613886)
  • Next Build on development (#15303946896)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc