Add comment/warning to node::block_confirmed_or_being_confirmed functions indicating potentially unexpected behavior with respect to MVCC database transactions. (#4540)
This commit is contained in:
parent
881adfdd53
commit
ad4f6c923c
1 changed files with 3 additions and 0 deletions
|
|
@ -119,8 +119,11 @@ public:
|
|||
void add_initial_peers ();
|
||||
void start_election (std::shared_ptr<nano::block> const & block);
|
||||
bool block_confirmed (nano::block_hash const &);
|
||||
|
||||
// This function may spuriously return false after returning true until the database transaction is refreshed
|
||||
bool block_confirmed_or_being_confirmed (nano::secure::transaction const &, nano::block_hash const &);
|
||||
bool block_confirmed_or_being_confirmed (nano::block_hash const &);
|
||||
|
||||
void do_rpc_callback (boost::asio::ip::tcp::resolver::iterator i_a, std::string const &, uint16_t, std::shared_ptr<std::string> const &, std::shared_ptr<std::string> const &, std::shared_ptr<boost::asio::ip::tcp::resolver> const &);
|
||||
void ongoing_online_weight_calculation ();
|
||||
void ongoing_online_weight_calculation_queue ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue