Skip to content

Commit

Permalink
Get height from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Nov 30, 2023
1 parent d2de1a0 commit 5071036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfi/rpc_poolpair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ UniValue updatepoolpair(const JSONRPCRequest &request) {
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Pool %s does not exist!", poolStr));
}
status = pool->status;
targetHeight = ::ChainActive().Height() + 1;
targetHeight = view->GetLastHeight() + 1;
}

if (!metaObj["status"].isNull()) {
Expand Down

0 comments on commit 5071036

Please sign in to comment.