| 1015 | } |
| 1016 | |
| 1017 | int main(int argc, char *argv[]) |
| 1018 | { |
| 1019 | setup_locale(); |
| 1020 | |
| 1021 | /* Initialize our global context object here to handle startup options. */ |
| 1022 | bitcoind = new_bitcoind(NULL); |
| 1023 | |
| 1024 | plugin_main(argv, init, PLUGIN_STATIC, false /* Do not init RPC on startup*/, |
| 1025 | NULL, commands, ARRAY_SIZE(commands), |
| 1026 | NULL, 0, NULL, 0, NULL, 0, |
| 1027 | plugin_option("bitcoin-datadir", |
| 1028 | "string", |
| 1029 | "-datadir arg for bitcoin-cli", |
| 1030 | charp_option, &bitcoind->datadir), |
| 1031 | plugin_option("bitcoin-cli", |
| 1032 | "string", |
| 1033 | "bitcoin-cli pathname", |
| 1034 | charp_option, &bitcoind->cli), |
| 1035 | plugin_option("bitcoin-rpcuser", |
| 1036 | "string", |
| 1037 | "bitcoind RPC username", |
| 1038 | charp_option, &bitcoind->rpcuser), |
| 1039 | plugin_option("bitcoin-rpcpassword", |
| 1040 | "string", |
| 1041 | "bitcoind RPC password", |
| 1042 | charp_option, &bitcoind->rpcpass), |
| 1043 | plugin_option("bitcoin-rpcconnect", |
| 1044 | "string", |
| 1045 | "bitcoind RPC host to connect to", |
| 1046 | charp_option, &bitcoind->rpcconnect), |
| 1047 | plugin_option("bitcoin-rpcport", |
| 1048 | "string", |
| 1049 | "bitcoind RPC host's port", |
| 1050 | charp_option, &bitcoind->rpcport), |
| 1051 | plugin_option("bitcoin-retry-timeout", |
| 1052 | "string", |
| 1053 | "how long to keep retrying to contact bitcoind" |
| 1054 | " before fatally exiting", |
| 1055 | u64_option, &bitcoind->retry_timeout), |
| 1056 | plugin_option("commit-fee", |
| 1057 | "string", |
| 1058 | "Percentage of fee to request for their commitment", |
| 1059 | u64_option, &bitcoind->commit_fee_percent), |
| 1060 | #if DEVELOPER |
| 1061 | plugin_option("dev-max-fee-multiplier", |
| 1062 | "string", |
| 1063 | "Allow the fee proposed by the remote end to" |
| 1064 | " be up to multiplier times higher than our " |
| 1065 | "own. Small values will cause channels to be" |
| 1066 | " closed more often due to fee fluctuations," |
| 1067 | " large values may result in large fees.", |
| 1068 | u32_option, &bitcoind->max_fee_multiplier), |
| 1069 | plugin_option("dev-no-fake-fees", |
| 1070 | "bool", |
| 1071 | "Suppress fee faking for regtest", |
| 1072 | bool_option, &bitcoind->no_fake_fees), |
| 1073 | #endif /* DEVELOPER */ |
| 1074 | NULL); |
nothing calls this directly
no test coverage detected