| 107 | } |
| 108 | |
| 109 | void delayed_node_plugin::mainloop() |
| 110 | { |
| 111 | while( true ) |
| 112 | { |
| 113 | try |
| 114 | { |
| 115 | fc::usleep( fc::microseconds( 296645 ) ); // wake up a little over 3Hz |
| 116 | |
| 117 | if( my->last_received_remote_head == my->last_processed_remote_head ) |
| 118 | continue; |
| 119 | |
| 120 | sync_with_trusted_node(); |
| 121 | my->last_processed_remote_head = my->last_received_remote_head; |
| 122 | } |
| 123 | catch( const fc::exception& e ) |
| 124 | { |
| 125 | elog("Error during connection: ${e}", ("e", e.to_detail_string())); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void delayed_node_plugin::plugin_startup() |
| 131 | { |
nothing calls this directly
no outgoing calls
no test coverage detected