mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
Remove default ctors from SecretKey and PublicKey: (#4607)
* It is now an invariant that all constructed Public Keys are valid, non-empty and contain 33 bytes of data. * Additionally, the memory footprint of the PublicKey class is reduced. The size_ data member is declared as static. * Distinguish and identify the PublisherList retrieved from the local config file, versus the ones obtained from other validators. * Fixes #2942
This commit is contained in:
committed by
GitHub
parent
97863e0b62
commit
62dae3c6c6
@@ -728,7 +728,7 @@ struct XChain_test : public beast::unit_test::suite,
|
||||
// Locking chain is XRP,
|
||||
// - Issuing chain is XRP with issuing chain is the root account.
|
||||
// ---------------------------------------------------------------------
|
||||
Account a, b;
|
||||
Account a("a"), b("b");
|
||||
Issue ia, ib;
|
||||
|
||||
std::tuple lcs{
|
||||
@@ -5005,7 +5005,8 @@ public:
|
||||
|
||||
// create 10 accounts + door funded on both chains, and store
|
||||
// in ChainStateTracker the initial amount of these accounts
|
||||
Account doorXRPLocking, doorUSDLocking, doorUSDIssuing;
|
||||
Account doorXRPLocking("doorXRPLocking"),
|
||||
doorUSDLocking("doorUSDLocking"), doorUSDIssuing("doorUSDIssuing");
|
||||
|
||||
constexpr size_t num_acct = 10;
|
||||
auto a = [&doorXRPLocking, &doorUSDLocking, &doorUSDIssuing]() {
|
||||
|
||||
Reference in New Issue
Block a user