Begin consensus refactor (RIPD-1011):

* New RCLCx* classes
* Refactor consensus positions
* Refactor proposed transaction sets
* Refactor disputed transactions
* Refactor position broadcast/replay
This commit is contained in:
David Schwartz
2016-07-13 13:21:51 -07:00
committed by Edward Hennis
parent 97806b42c4
commit f456355da2
20 changed files with 1128 additions and 632 deletions

View File

@@ -1233,7 +1233,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMProposeSet> const& m)
PublicKey const publicKey (makeSlice(set.nodepubkey()));
NetClock::time_point const closeTime { NetClock::duration{set.closetime()} };
Buffer signature (set.signature().data(), set.signature ().size());
Slice signature (set.signature().data(), set.signature ().size());
uint256 proposeHash, prevLedger;
memcpy (proposeHash.begin (), set.currenttxhash ().data (), 32);
@@ -1278,8 +1278,8 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMProposeSet> const& m)
auto proposal = std::make_shared<LedgerProposal> (
prevLedger, set.proposeseq (), proposeHash, closeTime,
publicKey, calcNodeID(publicKey), suppression);
proposal->setSignature (std::move(signature));
app_.timeKeeper().closeTime(), publicKey, calcNodeID(publicKey),
signature, suppression);
std::weak_ptr<PeerImp> weak = shared_from_this();
app_.getJobQueue ().addJob (