Skip to content

Commit 60b3ae1

Browse files
add gArgs
Signed-off-by: Pasta <pasta@dashboost.org>
1 parent f3259d0 commit 60b3ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/txdb.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) {
8989
CDBBatch batch(db);
9090
size_t count = 0;
9191
size_t changed = 0;
92-
size_t batch_size = (size_t)GetArg("-dbbatchsize", nDefaultDbBatchSize);
93-
int crash_simulate = GetArg("-dbcrashratio", 0);
92+
size_t batch_size = (size_t)gArgs.GetArg("-dbbatchsize", nDefaultDbBatchSize);
93+
int crash_simulate = gArgs.GetArg("-dbcrashratio", 0);
9494
assert(!hashBlock.IsNull());
9595

9696
uint256 old_tip = GetBestBlock();

0 commit comments

Comments
 (0)