mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Get rid of an unneeded member. Add some comments.
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
// Sync filters allow low-level SHAMapSync code to interact correctly with
|
// Sync filters allow low-level SHAMapSync code to interact correctly with
|
||||||
// higher-level structures such as caches and transaction stores
|
// higher-level structures such as caches and transaction stores
|
||||||
|
|
||||||
|
// This class is needed on both add and check functions
|
||||||
class ConsensusTransSetSF : public SHAMapSyncFilter
|
class ConsensusTransSetSF : public SHAMapSyncFilter
|
||||||
{ // sync filter for transaction sets during consensus building
|
{ // sync filter for transaction sets during consensus building
|
||||||
public:
|
public:
|
||||||
@@ -24,14 +25,14 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// This class is only needed on add functions
|
||||||
class AccountStateSF : public SHAMapSyncFilter
|
class AccountStateSF : public SHAMapSyncFilter
|
||||||
{ // sync filter for account state nodes during ledger sync
|
{ // sync filter for account state nodes during ledger sync
|
||||||
protected:
|
protected:
|
||||||
uint256 mLedgerHash;
|
|
||||||
uint32 mLedgerSeq;
|
uint32 mLedgerSeq;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AccountStateSF(const uint256& ledgerHash, uint32 ledgerSeq) : mLedgerHash(ledgerHash), mLedgerSeq(ledgerSeq)
|
AccountStateSF(uint32 ledgerSeq) : mLedgerSeq(ledgerSeq)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
virtual void gotNode(const SHAMapNode& id, const uint256& nodeHash,
|
virtual void gotNode(const SHAMapNode& id, const uint256& nodeHash,
|
||||||
@@ -45,14 +46,14 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// This class is only needed on add functions
|
||||||
class TransactionStateSF : public SHAMapSyncFilter
|
class TransactionStateSF : public SHAMapSyncFilter
|
||||||
{ // sync filter for transactions tree during ledger sync
|
{ // sync filter for transactions tree during ledger sync
|
||||||
protected:
|
protected:
|
||||||
uint256 mLedgerHash;
|
|
||||||
uint32 mLedgerSeq;
|
uint32 mLedgerSeq;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TransactionStateSF(const uint256& ledgerHash, uint32 ledgerSeq) : mLedgerHash(ledgerHash), mLedgerSeq(ledgerSeq)
|
TransactionStateSF(uint32 ledgerSeq) : mLedgerSeq(ledgerSeq)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
virtual void gotNode(const SHAMapNode& id, const uint256& nodeHash,
|
virtual void gotNode(const SHAMapNode& id, const uint256& nodeHash,
|
||||||
|
|||||||
Reference in New Issue
Block a user