| 2268 | } |
| 2269 | |
| 2270 | void use_network_node_api() |
| 2271 | { |
| 2272 | if( _remote_net_node ) |
| 2273 | return; |
| 2274 | try |
| 2275 | { |
| 2276 | _remote_net_node = _remote_api->network_node(); |
| 2277 | } |
| 2278 | catch( const fc::exception& e ) |
| 2279 | { |
| 2280 | std::cerr << "\nCouldn't get network node API. You probably are not configured\n" |
| 2281 | "to access the network API on the witness_node you are\n" |
| 2282 | "connecting to. Please follow the instructions in README.md to set up an apiaccess file.\n" |
| 2283 | "\n"; |
| 2284 | throw(e); |
| 2285 | } |
| 2286 | } |
| 2287 | |
| 2288 | void network_add_nodes( const vector<string>& nodes ) |
| 2289 | { |
nothing calls this directly
no test coverage detected