mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add shard import support to shard database
This commit is contained in:
@@ -1697,7 +1697,7 @@ void LedgerMaster::doAdvance (ScopedLockType& sl)
|
||||
{
|
||||
if (auto shardStore = app_.getShardStore())
|
||||
{
|
||||
missing = shardStore->prepare(mValidLedgerSeq);
|
||||
missing = shardStore->prepareLedger(mValidLedgerSeq);
|
||||
if (missing)
|
||||
reason = InboundLedger::Reason::SHARD;
|
||||
}
|
||||
|
||||
@@ -2151,7 +2151,7 @@ bool ApplicationImp::nodeToShards()
|
||||
"Invalid [shard_db] configuration";
|
||||
return false;
|
||||
}
|
||||
shardStore_->importNodeStore();
|
||||
shardStore_->import(getNodeStore());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user