Ben Woosley
1fabd59e7e
Break circular dependency: init -> * -> init by extracting shutdown.h
...
Most includers just wanted to react to pending shutdown.
This isolates access to `fRequestShutdown` and limits access to the shutdown
api functions, including the new `AbortShutdown` for setting it to `false`.
Note I originally called `AbortShutdown` `CancelShutdown` but that name was
already taken by winuser.h
https://travis-ci.org/bitcoin/bitcoin/jobs/386913329
This change also triggered a build error in bench. Fixing it required moving LIBBITCOIN_SERVER after LIBBITCOIN_WALLET in bench_bench_bitcoin_LDADD To make
server definitions in src/net.cpp available to wallet methods in
src/wallet/wallet.cpp. Specifically, solving:
libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.o): In function `CWalletTx::RelayWalletTransaction(CConnman*)':
wallet.cpp:(.text+0x3f0e): undefined reference to `CConnman::NodeFullyConnected(CNode const*)'
collect2: error: ld returned 1 exit status
https://travis-ci.org/bitcoin/bitcoin/jobs/392133581
Need for remaining init.h includes confirmed via a thorough search with a more
specific regex:
\bInterrupt\(\)|\bShutdown\(\)|\bInitLogging\(\)|\bInitParameterInteraction\(\)|\bAppInitBasicSetup\(\)|\bAppInitParameterInteraction\(\)|\bAppInitSanityChecks\(\)|\bAppInitLockDataDirectory\(\)|\bAppInitMain\(\)|\bSetupServerArgs\(\)|\bLicenseInfo\(\)|g_wallet_init_interface|init.h
2018-06-25 00:08:49 -04:00
..
2018-06-24 19:25:03 +02:00
2018-04-16 11:47:32 -04:00
2018-05-29 14:20:12 -07:00
2018-06-24 15:31:33 +02:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2018-02-16 08:59:28 -05:00
2018-05-29 16:49:52 -04:00
2018-06-10 13:38:38 -07:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2018-06-05 19:06:16 +02:00
2017-09-29 16:02:39 +02:00
2018-05-03 21:47:40 +02:00
2018-06-13 09:58:54 -04:00
2018-02-10 09:55:54 -05:00
2018-06-25 00:08:49 -04:00
2018-01-03 02:26:56 +09:00
2018-04-13 15:37:20 -04:00
2018-04-23 14:25:28 +02:00
2018-01-03 02:26:56 +09:00
2018-03-06 21:52:53 +01:00
2018-04-10 20:54:33 +02:00
2018-03-01 11:49:35 +09:00
2018-06-05 02:16:24 -07:00
2018-03-21 11:57:57 +08:00
2018-02-19 18:55:21 -08:00
2018-04-12 17:52:33 -07:00
2018-03-22 16:23:04 +01:00
2018-06-04 14:55:00 -04:00
2018-06-08 10:53:38 -07:00
2018-06-25 00:08:49 -04:00
2018-01-03 02:26:56 +09:00
2018-03-22 16:23:04 +01:00
2018-05-06 13:55:33 +02:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-05-14 18:36:39 -07:00
2018-05-02 10:02:48 -04:00
2018-04-17 17:15:20 -04:00
2018-05-30 14:23:35 +02:00
2018-05-09 12:21:05 -04:00
2018-02-11 10:48:15 +01:00
2018-03-06 19:52:19 +00:00
2018-03-06 19:52:19 +00: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-03-13 17:04:31 -07:00
2018-04-16 13:24:14 -07:00
2018-03-21 14:17:18 -07:00
2018-04-05 08:20:37 -07:00
2018-06-08 10:53:38 -07:00
2018-01-03 02:26:56 +09:00
2018-06-08 10:53:38 -07:00
2018-04-23 21:09:17 +02:00
2018-03-27 00:37:20 +02:00
2018-04-07 12:29:48 -04:00
2018-04-25 11:25:05 -07:00
2017-11-16 08:23:01 +13:00
2017-05-19 02:01:28 -07:00
2018-01-03 02:26:56 +09:00
2018-03-13 17:04:31 -07:00
2018-04-05 09:31:53 +02:00
2018-01-03 02:26:56 +09:00
2018-04-27 16:10:02 -07:00
2018-04-27 16:10:02 -07:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2018-03-07 07:04:07 -08:00
2018-03-22 16:23:04 +01:00
2018-05-19 11:16:00 -04:00
2018-05-19 11:16:00 -04:00
2018-05-05 00:43:04 -04:00
2018-05-05 00:43:04 -04:00
2018-01-03 02:26:56 +09:00
2018-05-07 13:39:19 +02:00
2018-05-02 11:25:20 +02:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2017-07-13 12:49:05 -04:00
2018-06-06 17:36:53 -04:00
2018-06-06 17:36:53 -04:00
2018-06-12 08:02:20 -04:00
2018-04-02 18:31:52 +00:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-06-15 13:40:00 -04:00
2018-05-05 16:51:22 +02:00
2018-06-25 00:08:00 -04:00
2018-05-13 21:03:27 +02:00
2018-05-03 21:47:40 +02:00
2018-04-13 19:25:18 +02:00
2018-04-16 13:24:14 -07:00
2018-04-16 13:24:14 -07:00
2018-05-03 21:47:40 +02:00
2018-03-11 10:49:04 +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-02-27 13:27:51 -08:00
2018-02-17 21:28:50 +11:00
2018-04-10 20:54:33 +02:00
2018-01-03 02:26:56 +09:00
2018-05-29 14:40:18 -07:00
2018-05-24 09:51:47 +02:00
2018-03-22 12:21:46 -04:00
2018-05-30 12:23:44 +09:00
2017-08-16 16:33:25 +02:00
2018-01-03 02:26:56 +09:00
2018-04-30 11:17:06 +02:00
2018-04-11 14:23:58 +02:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2018-04-05 08:20:37 -07:00
2018-03-13 17:04:31 -07:00
2018-05-22 06:31:26 -04:00
2018-01-03 02:26:56 +09:00
2018-04-25 11:25:09 -07:00
2018-04-25 11:25:09 -07:00
2018-05-14 08:46:54 -04:00
2018-01-03 02:26:56 +09:00
2018-03-21 08:34:44 +02:00
2018-05-21 10:53:18 -07:00
2018-02-08 14:35:29 -05:00
2018-06-25 00:08:49 -04:00
2018-06-04 19:22:30 -07:00
2018-06-15 13:40:00 -04:00
2018-06-11 19:04:56 +09:00
2018-01-03 02:26:56 +09:00
2018-05-22 16:56:20 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-03-21 11:17:43 -04:00
2018-06-12 14:33:35 -07:00
2018-06-12 14:33:35 -07:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-03-07 07:04:07 -08:00
2018-03-06 20:28:08 -08:00
2018-04-20 08:41:15 +10:00
2018-04-13 01:36:53 -07:00
2018-06-25 00:08:49 -04:00
2018-06-15 09:58:26 -04:00
2018-06-25 00:08:00 -04:00
2018-05-16 18:30:35 +02:00
2018-01-03 02:26:56 +09:00
2018-03-09 15:03:40 +01:00
2018-04-01 18:30:21 -04:00
2018-05-09 12:21:05 -04:00
2018-04-29 22:29:53 +02:00
2018-04-27 09:27:52 +02:00