mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove RippleAddress:
The RippleAddress class was used to represent a number of fundamentally different types: account public keys, account secret keys, node public keys, node secret keys, seeds and generators. The class is replaced by the following types: * PublicKey for account and node public keys * SecretKey for account and node private keys * Generator for generating secp256k1 accounts * Seed for account, node and generator seeds
This commit is contained in:
@@ -74,15 +74,26 @@ bool CanonicalTXSet::Key::operator>= (Key const& rhs)const
|
||||
return mTXid >= rhs.mTXid;
|
||||
}
|
||||
|
||||
uint256 CanonicalTXSet::accountKey (AccountID const& account)
|
||||
{
|
||||
uint256 ret = beast::zero;
|
||||
memcpy (
|
||||
ret.begin (),
|
||||
account.begin (),
|
||||
account.size ());
|
||||
ret ^= mSetHash;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void CanonicalTXSet::insert (std::shared_ptr<STTx const> const& txn)
|
||||
{
|
||||
uint256 effectiveAccount = mSetHash;
|
||||
|
||||
effectiveAccount ^= to256 (txn->getAccountID(sfAccount));
|
||||
|
||||
mMap.insert (std::make_pair (
|
||||
Key (effectiveAccount, txn->getSequence (), txn->getTransactionID ()),
|
||||
txn));
|
||||
mMap.insert (
|
||||
std::make_pair (
|
||||
Key (
|
||||
accountKey (txn->getAccountID(sfAccount)),
|
||||
txn->getSequence (),
|
||||
txn->getTransactionID ()),
|
||||
txn));
|
||||
}
|
||||
|
||||
CanonicalTXSet::iterator CanonicalTXSet::erase (iterator const& it)
|
||||
|
||||
Reference in New Issue
Block a user