mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
fix: Replace charge() by fee_.update() in OnMessage functions (#5269)
In PeerImpl.cpp, if the function is a message handler (onMessage) or called directly from a message handler, then it should use fee_, since when the handler returns (OnMessageEnd) then the charge function is called. If the function is not a message handler, such as a job queue item, it should remain charge.
This commit is contained in:
@@ -57,6 +57,9 @@ public:
|
||||
std::strong_ordering
|
||||
operator<=>(Charge const&) const;
|
||||
|
||||
Charge
|
||||
operator*(value_type m) const;
|
||||
|
||||
private:
|
||||
value_type m_cost;
|
||||
std::string m_label;
|
||||
|
||||
Reference in New Issue
Block a user