|
18 | 18 | class ReceivedByTest(BitcoinTestFramework):
|
19 | 19 | def set_test_params(self):
|
20 | 20 | self.num_nodes = 2
|
21 |
| - # Test deprecated exclude coinbase on second node |
22 |
| - self.extra_args = [[], ["-deprecatedrpc=exclude_coinbase"]] |
23 | 21 |
|
24 | 22 | def skip_test_if_missing_module(self):
|
25 | 23 | self.skip_if_no_wallet()
|
@@ -250,35 +248,6 @@ def run_test(self):
|
250 | 248 | {"label": label},
|
251 | 249 | {}, True)
|
252 | 250 |
|
253 |
| - # Test exclude_coinbase |
254 |
| - address2 = self.nodes[1].getnewaddress(label) |
255 |
| - self.generatetoaddress(self.nodes[1], COINBASE_MATURITY + 1, address2, sync_fun=self.no_op) |
256 |
| - |
257 |
| - self.log.info("getreceivedbyaddress returns nothing when excluding coinbase") |
258 |
| - balance = self.nodes[1].getreceivedbyaddress(address2) |
259 |
| - assert_equal(balance, 0) |
260 |
| - |
261 |
| - self.log.info("getreceivedbylabel returns nothing when excluding coinbase") |
262 |
| - balance = self.nodes[1].getreceivedbylabel("label") |
263 |
| - assert_equal(balance, 0) |
264 |
| - |
265 |
| - self.log.info("listreceivedbyaddress does not include address when excluding coinbase") |
266 |
| - assert_array_result(self.nodes[1].listreceivedbyaddress(), |
267 |
| - {"address": address2}, |
268 |
| - {}, True) |
269 |
| - |
270 |
| - self.log.info("listreceivedbylabel does not include label when excluding coinbase") |
271 |
| - assert_array_result(self.nodes[1].listreceivedbylabel(), |
272 |
| - {"label": label}, |
273 |
| - {}, True) |
274 |
| - |
275 |
| - self.log.info("getreceivedbyaddress throws when setting include_immature_coinbase with deprecated exclude_coinbase") |
276 |
| - assert_raises_rpc_error(-8, 'include_immature_coinbase is incompatible with deprecated exclude_coinbase', self.nodes[1].getreceivedbyaddress, address2, 1, True) |
277 |
| - |
278 |
| - |
279 |
| - self.log.info("listreceivedbyaddress throws when setting include_immature_coinbase with deprecated exclude_coinbase") |
280 |
| - assert_raises_rpc_error(-8, 'include_immature_coinbase is incompatible with deprecated exclude_coinbase', self.nodes[1].listreceivedbyaddress, 1, False, False, "", True) |
281 |
| - |
282 | 251 |
|
283 | 252 | if __name__ == '__main__':
|
284 | 253 | ReceivedByTest().main()
|
0 commit comments