Pieter Wuille
252ae7111c
Merge #12424 : Fix rescan test failure due to unset g_address_type, g_change_type
...
b7f6002ed5 Fix rescan test failure due to unset g_address_type, g_change_type (Russell Yanofsky)
Pull request description:
New global variables were introduced in #11403 and not setting them causes:
```
test_bitcoin: wallet/wallet.cpp:4259: CTxDestination GetDestinationForKey(const CPubKey&, OutputType): Assertion `false' failed.
unknown location(0): fatal error in "importwallet_rescan": signal: SIGABRT (application abort requested)
```
It's possible to reproduce the failure reliably by running:
```
src/test/test_bitcoin --log_level=test_suite --run_test=wallet_tests/importwallet_rescan
```
Failures happen nondeterministically because boost test framework doesn't run tests in a specified order, and tests that run previously can set the global variables and mask the bug.
This is similar to bug #12150 . Example travis failure is https://travis-ci.org/bitcoin/bitcoin/jobs/340642010
Tree-SHA512: ab40662b3356892b726f1f552e22d58d86b5e982538741e52b37ee447a0c97c76c24ae543687edf2e25d9dd925722909d37abfae95d93bf09e23fa245a4c3351
2018-02-13 17:34:42 -08:00
..
2018-01-16 11:48:33 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-25 18:02:24 -05:00
2018-02-07 16:15:28 -05:00
2018-02-12 15:48:37 +01:00
2018-02-12 09:13:38 -05:00
2018-02-11 10:48:15 +01:00
2017-09-29 16:02:39 +02:00
2018-01-03 02:26:56 +09:00
2018-02-11 10:48:15 +01:00
2018-02-10 09:55:54 -05:00
2018-02-13 12:29:00 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-29 14:26:26 +01:00
2018-02-07 16:15:28 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-11-16 08:23:01 +13:00
2017-09-28 16:02:16 -07:00
2018-02-06 18:05:34 +01:00
2018-02-01 23:19:41 -08:00
2018-01-25 11:35:34 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-24 13:07:05 +01:00
2018-02-08 22:06:43 +01:00
2018-02-08 22:06:43 +01:00
2018-02-11 10:48:15 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-07 20:44:21 +00:00
2018-02-13 10:58:41 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-12 11:22:54 +00:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-07 16:15:28 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-11-16 08:23:01 +13:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-11 21:40:51 +01:00
2018-01-03 02:26:56 +09:00
2018-02-08 09:21:49 +01:00
2018-01-03 02:26:56 +09:00
2018-02-12 10:34:49 +01:00
2018-01-25 11:35:34 -05:00
2018-02-05 02:25:28 -08:00
2018-01-23 13:16:56 -05:00
2018-01-10 20:55:41 -10:00
2018-01-10 20:55:41 -10:00
2018-01-03 02:26:56 +09:00
2018-01-11 14:13:24 -05:00
2017-10-04 14:54:41 +02:00
2017-11-17 14:04:02 +01:00
2017-12-23 11:22:18 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-13 15:57:30 -05:00
2018-01-13 15:57:30 -05:00
2018-02-08 18:06:21 -05:00
2018-01-24 12:18:29 +01:00
2018-02-08 14:35:28 -05:00
2018-02-08 14:35:28 -05:00
2018-02-07 16:15:28 -05:00
2018-01-03 02:26:56 +09:00
2018-02-07 16:15:28 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-07 16:15:28 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-10 10:05:07 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-28 13:21:25 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-10-29 21:12:12 +08:00
2018-02-08 14:35:29 -05:00
2018-02-08 14:35:29 -05:00
2018-01-03 02:26:56 +09:00
2018-02-07 16:15:28 -05:00
2018-01-09 08:59:21 -05:00
2018-01-25 18:02:24 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-05 17:48:59 -05:00
2018-02-05 17:48:59 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-12 10:34:49 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00