| 854 | } |
| 855 | |
| 856 | void btck_context_options_set_chainparams(btck_ContextOptions* options, const btck_ChainParameters* chain_parameters) |
| 857 | { |
| 858 | // Copy the chainparams, so the caller can free it again |
| 859 | LOCK(btck_ContextOptions::get(options).m_mutex); |
| 860 | btck_ContextOptions::get(options).m_chainparams = std::make_unique<const CChainParams>(btck_ChainParameters::get(chain_parameters)); |
| 861 | } |
| 862 | |
| 863 | void btck_context_options_set_notifications(btck_ContextOptions* options, btck_NotificationInterfaceCallbacks notifications) |
| 864 | { |