mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix proposal relaying (RIPD-1057):
Stash the signature so we can relay a proposal later
This commit is contained in:
@@ -1289,6 +1289,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMProposeSet> const& m)
|
||||
NetClock::time_point{NetClock::duration{set.closetime()}},
|
||||
signerPublic, PublicKey(makeSlice(set.nodepubkey())),
|
||||
suppression);
|
||||
proposal->setSignature (Blob (set.signature().begin(), set.signature().end()));
|
||||
|
||||
std::weak_ptr<PeerImp> weak = shared_from_this();
|
||||
app_.getJobQueue ().addJob (
|
||||
@@ -1902,7 +1903,7 @@ PeerImp::checkPropose (Job& job,
|
||||
assert (packet);
|
||||
protocol::TMProposeSet& set = *packet;
|
||||
|
||||
if (! cluster() && ! proposal->checkSign (set.signature ()))
|
||||
if (! cluster() && ! proposal->checkSign ())
|
||||
{
|
||||
p_journal_.warning <<
|
||||
"Proposal fails sig check";
|
||||
|
||||
Reference in New Issue
Block a user