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

libbitcoin / libbitcoin-node / 45530165848

25 Nov 2026 02:03AM UTC coverage: 89.415% (-1.2%) from 90.659%
45530165848

push

github

web-flow
Merge pull request #1291 from evoskuil/master

Advance pool chain state by header, querying only at start/reorg.

32 of 33 new or added lines in 4 files covered. (96.97%)

247 existing lines in 18 files now uncovered.

5102 of 5706 relevant lines covered (89.41%)

4440.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.03
/src/full_node.cpp
1
/**
2
 * Copyright (c) 2011-2026 libbitcoin developers
3
 *
4
 * This file is part of libbitcoin.
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Affero General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU Affero General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
#include <bitcoin/node/full_node.hpp>
20

21
#include <bitcoin/node/chasers/chasers.hpp>
22
#include <bitcoin/node/define.hpp>
23
#include <bitcoin/node/sessions/sessions.hpp>
24

25
namespace libbitcoin {
26
namespace node {
27

28
using namespace system;
29
using namespace database;
30
using namespace network;
31
using namespace std::placeholders;
32

33
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
34

35
// net::strand() is safe to call from constructor (non-virtual).
36
full_node::full_node(query& query, const configuration& configuration,
522 ✔
37
    const logger& log) NOEXCEPT
522 ✔
38
  : net(configuration.network, log, configuration.node.services_required(),
522 ✔
39
        configuration.node.services_provided()),
40
    config_(configuration),
522 ✔
41
    start_time_(zulu_time()),
1,044 ✔
42
    query_(query),
522 ✔
43
    chaser_header_(*this),
522 ✔
44
    chaser_download_(*this),
522 ✔
45
    chaser_validate_(*this),
522 ✔
46
    chaser_confirm_(*this),
522 ✔
47
    chaser_transaction_(*this),
522 ✔
48
    chaser_template_(*this),
522 ✔
49
    chaser_snapshot_(*this),
522 ✔
50
    chaser_storage_(*this)
1,044 ✔
51
{
52
}
522 ✔
53

54
full_node::~full_node() NOEXCEPT
522 ✔
55
{
56
}
522 ✔
57

58
// Sequences.
59
// ----------------------------------------------------------------------------
60

61
void full_node::start(result_handler&& handler) NOEXCEPT
516 ✔
62
{
63
    if (!query_.is_initialized())
516 ✔
64
    {
65
        handler(error::store_uninitialized);
1 ✔
66
        return;
1 ✔
67
    }
68

69
    if (config_.node.provide_filters && !query_.filter_enabled())
515 ✔
70
    {
71
        handler(error::filter_unindexed);
1 ✔
72
        return;
1 ✔
73
    }
74

75
    // Base (net) invokes do_start().
76
    net::start(std::move(handler));
514 ✔
77
}
78

79
void full_node::do_start(const result_handler& handler) NOEXCEPT
444 ✔
80
{
81
    BC_ASSERT(stranded());
444 ✔
82
    code ec{};
444 ✔
83

84
    if (((ec = chaser_header_.start())) ||
444 ✔
85
        ((ec = chaser_download_.start())) ||
443 ✔
86
        ((ec = chaser_validate_.start())) ||
443 ✔
87
        ((ec = chaser_confirm_.start())) ||
443 ✔
88
        ((ec = chaser_transaction_.start())) ||
443 ✔
89
        ((ec = chaser_template_.start())) ||
443 ✔
90
        ((ec = chaser_snapshot_.start())) ||
887 ✔
91
        ((ec = chaser_storage_.start())))
443 ✔
92
    {
93
        handler(ec);
1 ✔
94
        return;
1 ✔
95
    }
96

97
    net::do_start(handler);
443 ✔
98
}
99

100
void full_node::run(result_handler&& handler) NOEXCEPT
505 ✔
101
{
102
    // Base (net) invokes do_run().
103
    net::run(std::move(handler));
505 ✔
104
}
505 ✔
105

106
void full_node::do_run(const result_handler& handler) NOEXCEPT
434 ✔
107
{
108
    BC_ASSERT(stranded());
434 ✔
109

110
    if (closed())
434 ✔
111
    {
112
        handler(network::error::service_stopped);
1 ✔
113
        return;
1 ✔
114
    }
115

116
    // Bump sequential chasers to their starting heights.
117
    // Kicks off lagging validations even if not current.
118
    do_notify(error::success, chases::start{});
433 ✔
119

120
    // Start services after network is running.
121
    net::do_run(handler);
433 ✔
122
}
123

124
void full_node::close() NOEXCEPT
522 ✔
125
{
126
    // Base (net) invokes do_close().
127
    net::close();
522 ✔
128

129
    // Block on chaser stop (including dedicated threadpool joins).
130
    chaser_header_.stop();
522 ✔
131
    chaser_download_.stop();
522 ✔
132
    chaser_validate_.stop();
522 ✔
133
    chaser_confirm_.stop();
522 ✔
134
    chaser_transaction_.stop();
522 ✔
135
    chaser_template_.stop();
522 ✔
136
    chaser_snapshot_.stop();
522 ✔
137
    chaser_storage_.stop();
522 ✔
138
}
522 ✔
139

140
// Base (net) invokes do_close().
141
void full_node::do_close() NOEXCEPT
522 ✔
142
{
143
    BC_ASSERT(stranded());
522 ✔
144

145
    // Initiate chaser stopping (including dedicated threadpools).
146
    chaser_header_.stopping(network::error::service_stopped);
522 ✔
147
    chaser_download_.stopping(network::error::service_stopped);
522 ✔
148
    chaser_validate_.stopping(network::error::service_stopped);
522 ✔
149
    chaser_confirm_.stopping(network::error::service_stopped);
522 ✔
150
    chaser_transaction_.stopping(network::error::service_stopped);
522 ✔
151
    chaser_template_.stopping(network::error::service_stopped);
522 ✔
152
    chaser_snapshot_.stopping(network::error::service_stopped);
522 ✔
153
    chaser_storage_.stopping(network::error::service_stopped);
522 ✔
154

155
    event_subscriber_.stop(network::error::service_stopped, chases::stop{});
522 ✔
156
    net::do_close();
522 ✔
157
}
522 ✔
158

159
// Organizers.
160
// ----------------------------------------------------------------------------
161

162
void full_node::organize(const system::chain::header::cptr& header,
3 ✔
163
    organize_handler&& handler) NOEXCEPT
164
{
165
    chaser_header_.organize(header, std::move(handler));
3 ✔
166
}
3 ✔
167

168
void full_node::organize(const system::chain::header::cptr& header,
6,012 ✔
169
    bool milestone, organize_handler&& handler) NOEXCEPT
170
{
171
    chaser_header_.organize(header, milestone, std::move(handler));
6,012 ✔
172
}
6,012 ✔
173

174
void full_node::organize_compact(const system::chain::header::cptr& header,
10 ✔
175
    organize_handler&& handler) NOEXCEPT
176
{
177
    chaser_header_.organize_compact(header, std::move(handler));
10 ✔
178
}
10 ✔
179

UNCOV
180
void full_node::organize_submitted(const system::chain::header::cptr& header,
×
181
    organize_handler&& handler) NOEXCEPT
182
{
UNCOV
183
    chaser_header_.organize_submitted(header, std::move(handler));
×
UNCOV
184
}
×
185

186
void full_node::prioritize(const system::hash_digest& hash,
3 ✔
187
    organize_handler&& handler) NOEXCEPT
188
{
189
    chaser_header_.prioritize(hash, std::move(handler));
3 ✔
190
}
3 ✔
191

192
void full_node::get_minimum_work(work_handler&& handler) NOEXCEPT
79 ✔
193
{
194
    chaser_header_.get_minimum_work(std::move(handler));
79 ✔
195
}
79 ✔
196

197
void full_node::submit(const system::chain::transactions_cptr& txs, bool test,
133 ✔
198
    submit_handler&& handler) NOEXCEPT
199
{
200
    chaser_transaction_.submit(txs, test, std::move(handler));
133 ✔
201
}
133 ✔
202

203
void full_node::submit_announced(
32 ✔
204
    const system::chain::transactions_cptr& txs, size_t slot,
205
    submit_handler&& handler) NOEXCEPT
206
{
207
    chaser_transaction_.submit_announced(txs, slot, std::move(handler));
32 ✔
208
}
32 ✔
209

210
void full_node::submit_compact(const system::chain::transactions_cptr& txs,
13 ✔
211
    const database::tx_links& links, const database::header_link& link,
212
    submit_handler&& handler) NOEXCEPT
213
{
214
    chaser_transaction_.submit_compact(txs, links, link, std::move(handler));
13 ✔
215
}
13 ✔
216

217
bool full_node::archive_block(code& ec,
12 ✔
218
    const system::chain::view::block::cptr& block,
219
    const database::header_link& link, bool strong, bool bypass, size_t height,
220
    bool prune, result_handler&& handler) NOEXCEPT
221
{
222
    return chaser_transaction_.archive_block(ec, block, link, strong, bypass,
12 ✔
223
        height, prune, std::move(handler));
12 ✔
224
}
225

226
void full_node::build_template(template_handler&& handler) NOEXCEPT
69 ✔
227
{
228
    chaser_transaction_.build_template(std::move(handler));
69 ✔
229
}
69 ✔
230

231
void full_node::subscribe_pool(pool_notifier&& handler) NOEXCEPT
9 ✔
232
{
233
    chaser_transaction_.subscribe_pool(std::move(handler));
9 ✔
234
}
9 ✔
235

236
uint64_t full_node::pool_generation() const NOEXCEPT
25 ✔
237
{
238
    return chaser_transaction_.pool_generation();
25 ✔
239
}
240

241
void full_node::get_template(block_template_handler&& handler) NOEXCEPT
18 ✔
242
{
243
    chaser_template_.get_template(std::move(handler));
18 ✔
244
}
18 ✔
245

UNCOV
246
void full_node::demand_template(bool demand) NOEXCEPT
×
247
{
UNCOV
248
    chaser_template_.demand_template(demand);
×
UNCOV
249
}
×
250

251
uint64_t full_node::template_generation() const NOEXCEPT
2 ✔
252
{
253
    return chaser_template_.template_generation();
2 ✔
254
}
255

256
void full_node::get_hashes(map_handler&& handler) NOEXCEPT
76 ✔
257
{
258
    chaser_download_.get_hashes(std::move(handler));
76 ✔
259
}
76 ✔
260

261
void full_node::put_hashes(const map_ptr& map,
33 ✔
262
    result_handler&& handler) NOEXCEPT
263
{
264
    chaser_download_.put_hashes(map, std::move(handler));
33 ✔
265
}
33 ✔
266

267
void full_node::get_unfilled(header_t link, map_handler&& handler) NOEXCEPT
9 ✔
268
{
269
    chaser_download_.get_unfilled(link, std::move(handler));
9 ✔
270
}
9 ✔
271

272
bool full_node::reserve_compact() NOEXCEPT
8 ✔
273
{
274
    auto count = compact_peers_.load();
275
    while (count < maximum_compact_peers)
8 ✔
276
        if (compact_peers_.compare_exchange_weak(count, add1(count)))
14 ✔
277
            return true;
278

279
    return false;
280
}
281

282
void full_node::release_compact() NOEXCEPT
4 ✔
283
{
284
    --compact_peers_;
4 ✔
285
}
4 ✔
286

287
size_t full_node::reserve_relay(relay_tier tier) NOEXCEPT
510 ✔
288
{
289
    return chaser_transaction_.reserve_relay(tier);
510 ✔
290
}
291

292
void full_node::activate_relay(size_t slot, object_key key) NOEXCEPT
103 ✔
293
{
294
    chaser_transaction_.activate_relay(slot, key);
103 ✔
295
}
103 ✔
296

297
void full_node::release_relay(size_t slot) NOEXCEPT
90 ✔
298
{
299
    chaser_transaction_.release_relay(slot);
90 ✔
300
}
90 ✔
301

302
void full_node::set_relay_rate(size_t slot, uint64_t rate) NOEXCEPT
20 ✔
303
{
304
    chaser_transaction_.set_relay_rate(slot, rate);
20 ✔
305
}
20 ✔
306

307
void full_node::set_relayed(size_t slot,
3 ✔
308
    const database::tx_links& links) NOEXCEPT
309
{
310
    chaser_transaction_.set_relayed(slot, links);
3 ✔
311
}
3 ✔
312

313
void full_node::relay_pool(size_t slot) NOEXCEPT
8 ✔
314
{
315
    chaser_transaction_.relay_pool(slot);
8 ✔
316
}
8 ✔
317

318
// Events.
319
// ----------------------------------------------------------------------------
320

321
void full_node::notify(const code& ec, event_value value) NOEXCEPT
7,095 ✔
322
{
323
    network::io::post(strand(),
7,095 ✔
324
        std::bind(&full_node::do_notify,
14,190 ✔
325
            this, ec, value));
7,095 ✔
326
}
7,095 ✔
327

328
// private
329
void full_node::do_notify(const code& ec, event_value value) NOEXCEPT
7,528 ✔
330
{
331
    BC_ASSERT(stranded());
7,528 ✔
332
    event_subscriber_.notify(ec, value);
7,528 ✔
333
}
7,528 ✔
334

335
void full_node::notify_one(object_key key, const code& ec,
706 ✔
336
    event_value value) NOEXCEPT
337
{
338
    network::io::post(strand(),
706 ✔
339
        std::bind(&full_node::do_notify_one,
1,412 ✔
340
            this, key, ec, value));
706 ✔
341
}
706 ✔
342

343
// private
344
void full_node::do_notify_one(object_key key, const code& ec,
706 ✔
345
    event_value value) NOEXCEPT
346
{
347
    BC_ASSERT(stranded());
706 ✔
348
    event_subscriber_.notify_one(key, ec, value);
706 ✔
349
}
706 ✔
350

351
object_key full_node::subscribe_chase(event_notifier&& handler) NOEXCEPT
3,638 ✔
352
{
353
    BC_ASSERT(stranded());
3,638 ✔
354
    const auto key = create_key();
3,638 ✔
355
    event_subscriber_.subscribe(std::move(handler), key);
3,638 ✔
356
    return key;
3,638 ✔
357
}
358

359
void full_node::subscribe_chase(event_notifier&& handler,
661 ✔
360
    event_completer&& complete) NOEXCEPT
361
{
362
    network::io::post(strand(),
661 ✔
363
        std::bind(&full_node::do_subscribe_chase,
661 ✔
364
            this, std::move(handler), std::move(complete)));
661 ✔
365
}
661 ✔
366

367
// private
368
void full_node::do_subscribe_chase(const event_notifier& handler,
661 ✔
369
    const event_completer& complete) NOEXCEPT
370
{
371
    BC_ASSERT(stranded());
661 ✔
372
    const auto key = create_key();
661 ✔
373
    complete(event_subscriber_.subscribe(move_copy(handler), key), key);
661 ✔
374
}
661 ✔
375

376
void full_node::unsubscribe_chase(object_key key) NOEXCEPT
689 ✔
377
{
378
    notify_one(key, network::error::service_stopped, chases::stop{});
689 ✔
379
}
689 ✔
380

381
// Suspensions.
382
// ----------------------------------------------------------------------------
383

384
bool full_node::resume() NOEXCEPT
11 ✔
385
{
386
    if (query_.is_full())
11 ✔
387
    {
UNCOV
388
        LOGF("Cannot resume network, disk full.");
×
UNCOV
389
        return false;
×
390
    }
391

392
    if (query_.is_fault())
11 ✔
393
    {
UNCOV
394
        LOGF("Cannot resume network, " << query_.get_fault());
×
395
        return false;
×
396
    }
397

398
    if (query_.is_fault_locked())
11 ✔
399
    {
400
        LOGF("Cannot resume network, fault locked.");
1 ✔
401
        return false;
1 ✔
402
    }
403

404
    LOGS("Resuming network.");
10 ✔
405
    const auto resumed = net::resume();
10 ✔
406
    notify(error::success, chases::resume{});
10 ✔
407
    return resumed;
10 ✔
408
}
409

410
// This is just a best effort, the call may have to be repeated.
411
void full_node::suspend(const code& ec) NOEXCEPT
29 ✔
412
{
413
    LOGS("Suspending network, " << ec.message());
29 ✔
414
    net::suspend(ec);
29 ✔
415
    notify(error::suspended_channel, chases::suspend{});
29 ✔
416
}
29 ✔
417

418
void full_node::fault(const code& ec) NOEXCEPT
17 ✔
419
{
420
    if (query_.is_full())
17 ✔
421
    {
UNCOV
422
        LOGF("Disk full [" << query_.get_space()
×
423
            << "] bytes required following, " << ec.message());
424
        notify(ec, chases::space{});
×
425
    }
426
    else if (query_.is_fault())
17 ✔
427
    {
UNCOV
428
        LOGF("Store fault (unrecoverable) '" << query_.get_fault().message()
×
429
            << "' following, " << ec.message());
UNCOV
430
        /* bool */ query_.set_fault_lock();
×
431
    }
432
    else if (ec)
17 ✔
433
    {
434
        // The cause did not originate from the memory map (!is_fault).
435
        LOGF("Node fault, " << ec.message());
16 ✔
436
        /* bool */ query_.set_fault_lock();
16 ✔
437
    }
438

439
    // If a call does not get all of the channels, subsequent failures do so.
440
    suspend(ec);
17 ✔
441
}
17 ✔
442

443
// Leaves network suspended, caller may want to resume upon success.
444
code full_node::prune(const store::event_handler& handler) NOEXCEPT
5 ✔
445
{
446
    if (query_.is_fault())
5 ✔
UNCOV
447
        return query_.get_code();
×
448

449
    const auto start = logger::now();
5 ✔
450
    suspend(error::store_prune);
5 ✔
451
    const auto ec = query_.prune([&](auto event, auto table) NOEXCEPT
5 ✔
452
    {
453
        // Suspend channels that missed previous suspend events.
454
        if (event == database::event_t::wait_lock)
630 ✔
455
            suspend(error::store_prune);
×
456

457
        handler(event, table);
630 ✔
458
    });
630 ✔
459

460
    net::span<milliseconds>(events::prune_msecs, start);
5 ✔
461
    return ec;
5 ✔
462
}
463

464
// Leaves network suspended, caller may want to resume upon success.
465
code full_node::snapshot(const store::event_handler& handler) NOEXCEPT
3 ✔
466
{
467
    if (query_.is_fault())
3 ✔
UNCOV
468
        return query_.get_code();
×
469

470
    const auto start = logger::now();
3 ✔
471
    suspend(error::store_snapshot);
3 ✔
472
    const auto ec = query_.snapshot([&](auto event, auto table) NOEXCEPT
3 ✔
473
    {
474
        // Suspend channels that missed previous suspend events.
475
        if (event == database::event_t::wait_lock)
297 ✔
UNCOV
476
            suspend(error::store_snapshot);
×
477

478
        handler(event, table);
297 ✔
479
    });
297 ✔
480

481
    net::span<seconds>(events::snapshot_secs, start);
3 ✔
482
    return ec;
3 ✔
483
}
484

485
// Leaves network suspended, caller may want to resume upon success.
486
code full_node::reload(const store::event_handler& handler) NOEXCEPT
2 ✔
487
{
488
    if (!query_.is_full())
2 ✔
489
        return query_.is_fault() ? query_.get_code() : error::success;
2 ✔
490

UNCOV
491
    const auto start = logger::now();
×
UNCOV
492
    suspend(error::store_reload);
×
493

494
    // Sets store's dirty flag, causing increased read activity for
495
    // set(tx/block) due to activation of duplicate detection. Store is however
496
    // always in a dirty state after startup with non-empty tables.
UNCOV
497
    const auto ec = query_.reload([&](auto event, auto table) NOEXCEPT
×
498
    {
499
        // Suspend channels that missed previous suspend events.
UNCOV
500
        if (event == database::event_t::wait_lock)
×
UNCOV
501
            suspend(error::store_reload);
×
502

UNCOV
503
        handler(event, table);
×
UNCOV
504
    });
×
505

UNCOV
506
    net::span<milliseconds>(events::reload_msecs, start);
×
UNCOV
507
    return ec;
×
508
}
509

510
// Properties.
511
// ----------------------------------------------------------------------------
512

513
query& full_node::archive() const NOEXCEPT
109,875 ✔
514
{
515
    return query_;
109,875 ✔
516
}
517

518
const node::configuration& full_node::node_config() const NOEXCEPT
1,765 ✔
519
{
520
    return config_;
1,765 ✔
521
}
522

523
const system::settings& full_node::system_settings() const NOEXCEPT
8,743 ✔
524
{
525
    return config_.bitcoin;
8,743 ✔
526
}
527

528
const database::settings& full_node::database_settings() const NOEXCEPT
554 ✔
529
{
530
    return config_.database;
554 ✔
531
}
532

533
////const network::settings& full_node::network_settings() const NOEXCEPT
534
////{
535
////    return network_.network_settings();
536
////}
537

538
const node::settings& full_node::node_settings() const NOEXCEPT
20,592 ✔
539
{
540
    return config_.node;
20,592 ✔
541
}
542

543
bool full_node::is_current_chain(bool confirmed) const NOEXCEPT
8,887 ✔
544
{
545
    if (is_zero(config_.node.currency_window_minutes))
8,887 ✔
546
        return true;
547

548
    return is_current_time(query_.get_top_timestamp(confirmed));
1,025 ✔
549
}
550

551
bool full_node::is_current_time(uint32_t timestamp) const NOEXCEPT
7,558 ✔
552
{
553
    if (is_zero(config_.node.currency_window_minutes))
7,558 ✔
554
        return true;
555

556
    const wall_clock::time_point time{ seconds{ timestamp } };
1,535 ✔
557
    const auto current = wall_clock::now() - config_.node.currency_window();
1,535 ✔
558
    return time >= current;
1,535 ✔
559
}
560

561
// get_timestamp error results in false (ok).
562
bool full_node::is_current_header(const header_link& link) const NOEXCEPT
425 ✔
563
{
564
    if (is_zero(config_.node.currency_window_minutes))
425 ✔
565
        return true;
566

567
    uint32_t timestamp{};
421 ✔
568
    if (!query_.get_timestamp(timestamp, link))
421 ✔
569
        return false;
570

571
    return is_current_time(timestamp);
420 ✔
572
}
573

574
bool full_node::is_recent() const NOEXCEPT
509 ✔
575
{
576
    if (is_nonzero(config_.node.maximum_height) &&
509 ✔
577
        (query_.get_top_confirmed() >= config_.node.maximum_height))
3 ✔
578
        return true;
579

580
    return is_current_chain(true);
508 ✔
581
}
582

583
time_t full_node::start_time() const NOEXCEPT
7 ✔
584
{
585
    return start_time_;
7 ✔
586
}
587

588
// Methods.
589
// ----------------------------------------------------------------------------
590

591
void full_node::estimate(size_t target, estimate_mode mode,
29 ✔
592
    estimate_handler&& handler) NOEXCEPT
593
{
594
    chaser_transaction_.estimate(target, mode, std::move(handler));
29 ✔
595
}
29 ✔
596

597
void full_node::get_confirmable_txs(confirmable_txs_handler&& handler) NOEXCEPT
14 ✔
598
{
599
    chaser_transaction_.get_confirmable_txs(std::move(handler));
14 ✔
600
}
14 ✔
601

602
void full_node::get_confirmable_fees(
6 ✔
603
    confirmable_fees_handler&& handler) NOEXCEPT
604
{
605
    chaser_transaction_.get_confirmable_fees(std::move(handler));
6 ✔
606
}
6 ✔
607

608
void full_node::performance(object_key key, uint64_t speed,
24 ✔
609
    result_handler&& handler) NOEXCEPT
610
{
611
    chaser_download_.update(key, speed, std::move(handler));
24 ✔
612
}
24 ✔
613

614
// Session attachments.
615
// ----------------------------------------------------------------------------
616

617
network::session_manual::ptr full_node::attach_manual_session() NOEXCEPT
513 ✔
618
{
619
    return net::attach<node::session_manual>(*this);
513 ✔
620
}
621

622
network::session_inbound::ptr full_node::attach_inbound_session() NOEXCEPT
503 ✔
623
{
624
    return net::attach<node::session_inbound>(*this);
503 ✔
625
}
626

627
network::session_outbound::ptr full_node::attach_outbound_session() NOEXCEPT
503 ✔
628
{
629
    return net::attach<node::session_outbound>(*this);
503 ✔
630
}
631

632
BC_POP_WARNING()
633

634
} // namespace node
635
} // namespace libbitcoin
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc