Skip to content

Commit fa8e095

Browse files
author
MarcoFalke
committed
rpc: Remove deprecated dummy alias for listtransactions::label
1 parent ebe4cac commit fa8e095

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/wallet/rpc/transactions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2011-2022 The Bitcoin Core developers
1+
// Copyright (c) 2011-present The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -443,7 +443,7 @@ RPCHelpMan listtransactions()
443443
"\nIf a label name is provided, this will return only incoming transactions paying to addresses with the specified label.\n"
444444
"\nReturns up to 'count' most recent transactions skipping the first 'from' transactions.\n",
445445
{
446-
{"label|dummy", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "If set, should be a valid label name to return only incoming transactions\n"
446+
{"label", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "If set, should be a valid label name to return only incoming transactions\n"
447447
"with the specified label, or \"*\" to disable filtering and return all transactions."},
448448
{"count", RPCArg::Type::NUM, RPCArg::Default{10}, "The number of transactions to return"},
449449
{"skip", RPCArg::Type::NUM, RPCArg::Default{0}, "The number of transactions to skip"},

test/functional/wallet_listtransactions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2014-2022 The Bitcoin Core developers
2+
# Copyright (c) 2014-present The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test the listtransactions API."""
@@ -103,7 +103,6 @@ def run_test(self):
103103
txid = self.nodes[1].sendtoaddress(multisig["address"], 0.1)
104104
self.generate(self.nodes[1], 1)
105105
assert_equal(len(self.nodes[0].listtransactions(label="watchonly", include_watchonly=True)), 1)
106-
assert_equal(len(self.nodes[0].listtransactions(dummy="watchonly", include_watchonly=True)), 1)
107106
assert len(self.nodes[0].listtransactions(label="watchonly", count=100, include_watchonly=False)) == 0
108107
assert_array_result(self.nodes[0].listtransactions(label="watchonly", count=100, include_watchonly=True),
109108
{"category": "receive", "amount": Decimal("0.1")},

0 commit comments

Comments
 (0)