aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2016-10-15 14:01:31 -0400
committerMatt Corallo <[email protected]>2016-12-04 00:13:09 -0800
commit2736c44c8edea5ce6a502a04269926fecda27301 (patch)
tree069bbf0a1a075266d34779da13685d8d162ff29a /src/rpc/blockchain.cpp
parentCreate a shared_ptr for the block we're connecting in ActivateBCS (diff)
downloaddiscoin-2736c44c8edea5ce6a502a04269926fecda27301.tar.xz
discoin-2736c44c8edea5ce6a502a04269926fecda27301.zip
Make the optional pblock in ActivateBestChain a shared_ptr
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index b9b68fc10..e6d80f06a 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1319,7 +1319,7 @@ UniValue invalidateblock(const JSONRPCRequest& request)
}
if (state.IsValid()) {
- ActivateBestChain(state, Params(), NULL);
+ ActivateBestChain(state, Params());
}
if (!state.IsValid()) {
@@ -1357,7 +1357,7 @@ UniValue reconsiderblock(const JSONRPCRequest& request)
}
CValidationState state;
- ActivateBestChain(state, Params(), NULL);
+ ActivateBestChain(state, Params());
if (!state.IsValid()) {
throw JSONRPCError(RPC_DATABASE_ERROR, state.GetRejectReason());