Understanding the Bitcoin core messages
When you run the Bitcoin core, two special logs are printed in the console during the error correction mode. These logs provide valuable views on the operation of the Bitcoin network. In this article, we will deepen the differences between the two logs and what they show when they show Bitcoin Core 28.0 when performing with Debug = 1.
TransactioDededTompool
The first log message is:
[validation] transactionaddedomempool
This post is printed with the Transaction Validation 'layer responsible for verifying Blockchain events.
[Validation]tag shows that this post is related to the validation of the event.
Adding a new event (set of waiting events) to Mempool, it goes through various checks, including:
- Validation : Events are ensured in terms of several rules and conditions such as checks, scripts and data integrity.
- Sorting : The event is sorted by its priority that determines how soon it can be sent to the network.
If the event passes these checks without errors, it will be added to the mempool. This process will continue until a valid event is found or all waiting events will be rejected.
MEMPOOL
Another log message is:
[Mempool] …
This message is printed on the Mempool -Operations
layer responsible for managing and manipulating Mempool events.
When the event is added to Mempool it may have to be:
- queued : Wait until it is available for mining.
- Fork : Come on a new fork if the previous one fails or becomes orphaned.
- BLOKING-FOLLED : If the validation layer has rejected the event and is not in a valid mode.
These functions will be performed to ensure that waiting events remain active online, preventing them from losing forever.
comparison and conclusions
When you run the Bitcoin Core version 28.0, Debug = 1:
- The first log message (TransactioNaddedTomepool
) indicates that a new event has been added to the mempool for validation.
- Another log message (Mempool
) displays the functions related to Mempool's events, including queuing, fork or flowering events.
In summary:
- [validation] transactionaddedomempool
logos the original addition of the event to Mempool for validation.
- [Mempool] …` log events that require Mempool functions such as queuing, fork or flowering branch.
By understanding these log messages and their effects, you can better track the operation of the Bitcoin network and optimize its performance when performing the Bitcoin core.