Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251using NotifyBlockTipFn =252std::function<void(SynchronizationState, interfaces::BlockTip tip, double verification_progress)>;253virtual std::unique_ptr<Handler> handleNotifyBlockTip(NotifyBlockTipFn fn) = 0;255//! Register handler for header tip messages.256using NotifyHeaderTipFn =257std::function<void(SynchronizationState, interfaces::BlockTip tip, bool presync)>;258virtual std::unique_ptr<Handler> handleNotifyHeaderTip(NotifyHeaderTipFn fn) = 0;260//! Get and set internal node context. Useful for testing, but not261//! accessible across processes.262virtual node::NodeContext* context() { return nullptr; }263virtual void setContext(node::NodeContext* context) { }264};266//! Return implementation of Node interface.267std::unique_ptr<Node> MakeNode(node::NodeContext& context);269//! Block tip (could be a header or not, depends on the subscribed signal).270struct BlockTip {271int block_height;272int64_t block_time;273uint256 block_hash;274};276} // namespace interfaces278#endif // BITCOIN_INTERFACES_NODE_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.