Repository navigation
fix fCheckSigTimeOnly in CMasternodePing::CheckAndUpdate - #1093
Conversation
|
I wonder if this is the real problem or if it is the state checking for broadcasts that prevents the MN info from being updated. I had prepared this PR: but haven't submitted it yet because I haven't been able to fully test it yet. |
|
I found many "keys don't match" errors in debug log which disappeared once I deleted mncache.dat on one node and resynced which led me to thinking that smth is not right and that was actually the place it failed as far as I can tell - it uses stored pmn->pubKeyMasternode to verify new sig signed by new keyMasternode. Obviously this should fail and it did :) |
|
Was this caused by changing the masternode private key associated with a vin in masternode.conf and running start-alias ? |
|
Yep, I guess so. Basically there is no reason to check new ping signature with old mn keys. MN keys are updated later in |
Not sure why we have this code here at all but it's preventing mns from updating their info from new mnb when masternodeprivkey changes. As a result nodes start banning each other (keys from sig and stored one do not match). Removed excessive logic and renamed
fCheckSigTimeOnlytofSimpleCheckto better match actual check mode it's used in.