From 5071036248bfa15e9ba4168afdc852e9aa5504bb Mon Sep 17 00:00:00 2001 From: Bushstar Date: Thu, 30 Nov 2023 10:14:14 +0000 Subject: [PATCH] Get height from snapshot --- src/dfi/rpc_poolpair.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfi/rpc_poolpair.cpp b/src/dfi/rpc_poolpair.cpp index 55aa5309356..eda7aeef594 100644 --- a/src/dfi/rpc_poolpair.cpp +++ b/src/dfi/rpc_poolpair.cpp @@ -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()) {