{"action":"created","issue":{"url":"https://api.github.com/repos/EOSIO/eos/issues/6246","repository_url":"https://api.github.com/repos/EOSIO/eos","labels_url":"https://api.github.com/repos/EOSIO/eos/issues/6246/labels{/name}","comments_url":"https://api.github.com/repos/EOSIO/eos/issues/6246/comments","events_url":"https://api.github.com/repos/EOSIO/eos/issues/6246/events","html_url":"https://github.com/EOSIO/eos/issues/6246","id":377713098,"node_id":"MDU6SXNzdWUzNzc3MTMwOTg=","number":6246,"title":"Question about not broadcasting confirmation once the receiver has confirmed the block successfully","user":{"login":"tekpig","id":15647767,"node_id":"MDQ6VXNlcjE1NjQ3NzY3","avatar_url":"https://avatars0.githubusercontent.com/u/15647767?v=4","gravatar_id":"","url":"https://api.github.com/users/tekpig","html_url":"https://github.com/tekpig","followers_url":"https://api.github.com/users/tekpig/followers","following_url":"https://api.github.com/users/tekpig/following{/other_user}","gists_url":"https://api.github.com/users/tekpig/gists{/gist_id}","starred_url":"https://api.github.com/users/tekpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tekpig/subscriptions","organizations_url":"https://api.github.com/users/tekpig/orgs","repos_url":"https://api.github.com/users/tekpig/repos","events_url":"https://api.github.com/users/tekpig/events{/privacy}","received_events_url":"https://api.github.com/users/tekpig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T06:48:26Z","updated_at":"2018-11-07T03:06:17Z","closed_at":null,"author_association":"NONE","body":"Now in the main net, when a transaction is packaged, it means that the current node confirms it, and it needs at least 2/3 of the 21 super nodes to confirm. In addition, two rounds of confirmation are required.\r\n\r\nTherefore, the difference between the current block height and the irreversible block height, up to a maximum of 336( 2 * (2/3) * 21 * 12 = 336 ).\r\n\r\nWhy not broadcast confirmation to make a block become irreversible faster?"},"comment":{"url":"https://api.github.com/repos/EOSIO/eos/issues/comments/436488751","html_url":"https://github.com/EOSIO/eos/issues/6246#issuecomment-436488751","issue_url":"https://api.github.com/repos/EOSIO/eos/issues/6246","id":436488751,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQ4ODc1MQ==","user":{"login":"tekpig","id":15647767,"node_id":"MDQ6VXNlcjE1NjQ3NzY3","avatar_url":"https://avatars0.githubusercontent.com/u/15647767?v=4","gravatar_id":"","url":"https://api.github.com/users/tekpig","html_url":"https://github.com/tekpig","followers_url":"https://api.github.com/users/tekpig/followers","following_url":"https://api.github.com/users/tekpig/following{/other_user}","gists_url":"https://api.github.com/users/tekpig/gists{/gist_id}","starred_url":"https://api.github.com/users/tekpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tekpig/subscriptions","organizations_url":"https://api.github.com/users/tekpig/orgs","repos_url":"https://api.github.com/users/tekpig/repos","events_url":"https://api.github.com/users/tekpig/events{/privacy}","received_events_url":"https://api.github.com/users/tekpig/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T03:06:17Z","updated_at":"2018-11-07T03:06:17Z","author_association":"NONE","body":"In plugins/producer_plugin/producer_plugin.cpp, when accepted_block_connection receives block, on_block function will be called. \r\n\r\nIn on_block function, \r\n         std::set_intersection( _producers.begin(), _producers.end(),\r\n                                active_producers.begin(), active_producers.end(),\r\n                                boost::make_function_output_iterator( [&]( const chain::account_name& producer )\r\n         {\r\n            if( producer != bsp->header.producer ) {\r\n               auto itr = std::find_if( active_producer_to_signing_key.begin(), active_producer_to_signing_key.end(),\r\n                                        [&](const producer_key& k){ return k.producer_name == producer; } );\r\n               if( itr != active_producer_to_signing_key.end() ) {\r\n                  auto private_key_itr = _signature_providers.find( itr->block_signing_key );\r\n                  if( private_key_itr != _signature_providers.end() ) {\r\n                     auto d = bsp->sig_digest();\r\n                     auto sig = private_key_itr->second( d );\r\n                     _last_signed_block_time = bsp->header.timestamp;\r\n                     _last_signed_block_num  = bsp->block_num;\r\n\r\n   //                  ilog( \"${n} confirmed\", (\"n\",name(producer)) );\r\n                     _self->confirmed_block( { bsp->id, d, producer, sig } );\r\n                  }\r\n               }\r\n            }\r\n         } ) );\r\n\r\nWhat's the purpose of the above codes?"}}
{"actor":{"display_login":"tekpig"}}