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:
Bart
2025-02-13 11:54:01 -05:00
committed by tequ
parent 0d3dd400f0
commit 601bb7ed0f
3 changed files with 41 additions and 19 deletions

View File

@@ -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;