MCPcopy Create free account
hub / github.com/cryptonomex/graphene / mainloop

Method mainloop

libraries/plugins/delayed_node/delayed_node_plugin.cpp:109–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void 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
130void delayed_node_plugin::plugin_startup()
131{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected