You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Make sure the results are valid at least up to the most recent block
1546
1546
// the user could have gotten from another RPC command prior to now
1547
-
pwallet->BlockUntilSyncedToCurrentChain();
1547
+
wallet.BlockUntilSyncedToCurrentChain();
1548
1548
1549
-
LOCK(pwallet->cs_wallet);
1549
+
LOCK(wallet.cs_wallet);
1550
1550
1551
1551
// The way the 'height' is initialized is just a workaround for the gcc bug #47679 since version 4.6.0.
1552
1552
Optional<int> height = MakeOptional(false, int()); // Height of the specified block or the common ancestor, if the block provided was in a deactivated chain.
if (!pwallet->chain().findCommonAncestor(blockId, pwallet->GetLastBlockHash(), /* ancestor out */FoundBlock().height(*height), /* blockId out */FoundBlock().height(*altheight))) {
1562
+
if (!wallet.chain().findCommonAncestor(blockId, wallet.GetLastBlockHash(), /* ancestor out */FoundBlock().height(*height), /* blockId out */FoundBlock().height(*altheight))) {
1563
1563
throwJSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
0 commit comments