{"action":"created","issue":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/862","repository_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode","labels_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/862/labels{/name}","comments_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/862/comments","events_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/862/events","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/issues/862","id":279769445,"number":862,"title":"[Network sync] Investigate occasional problem with node being not synced with its peers","user":{"login":"Aprogiena","id":30052221,"avatar_url":"https://avatars0.githubusercontent.com/u/30052221?v=4","gravatar_id":"","url":"https://api.github.com/users/Aprogiena","html_url":"https://github.com/Aprogiena","followers_url":"https://api.github.com/users/Aprogiena/followers","following_url":"https://api.github.com/users/Aprogiena/following{/other_user}","gists_url":"https://api.github.com/users/Aprogiena/gists{/gist_id}","starred_url":"https://api.github.com/users/Aprogiena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aprogiena/subscriptions","organizations_url":"https://api.github.com/users/Aprogiena/orgs","repos_url":"https://api.github.com/users/Aprogiena/repos","events_url":"https://api.github.com/users/Aprogiena/events{/privacy}","received_events_url":"https://api.github.com/users/Aprogiena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-12-06T14:20:08Z","updated_at":"2017-12-07T23:02:09Z","closed_at":null,"author_association":"COLLABORATOR","body":"The testing scenario looks like this:\r\n- run a node with just `-testnet` argument\r\n- run a second node that will have `-testnet -stake=1 -walletname=yourwallet -walletpassword=yourpassword -connect=firstnode -`, this will make sure that the second node is only connected to the network via the first node and that the second node is staking\r\n- now sometimes it seems that when the second node mines a block, the first node does not accept it, it does not even advance its headers, so the situation is that the second node sends the headers to the first node, say height of the new block is `X`, and then you can see the first node to be at height `X-1` for quite a long time and then it even accepts competitive block from another peer at height `X` - this is what we want to investigate why this happens (it should not)\r\n- this log settings can help with investigation:\r\ndedicated target:\r\n```\r\n    <target name=\"debugInvestigateFile\" xsi:type=\"AsyncWrapper\" queueLimit=\"10000\" overflowAction=\"Block\" batchSize=\"1000\">\r\n      <target xsi:type=\"File\" fileName=\"investigate.txt\" layout=\"[${longdate:universalTime=true} ${threadid}${mdlc:item=id}] ${level:uppercase=true}: ${callsite} ${message}\" encoding=\"utf-8\" /> \r\n    </target>\r\n```\r\nrules for the target:\r\n```\r\n    <logger name=\"Stratis.Bitcoin.Base.ChainHeadersBehavior\" minlevel=\"Trace\" writeTo=\"debugInvestigateFile\" />\r\n    <logger name=\"Stratis.Bitcoin.Features.BlockStore.*\" minlevel=\"Trace\" writeTo=\"debugInvestigateFile\" />\r\n    <logger name=\"Stratis.Bitcoin.P2P.Peer.*\" minlevel=\"Trace\" writeTo=\"debugInvestigateFile\" />\r\n    <logger name=\"Stratis.Bitcoin.Features.Miner.*\" minlevel=\"Trace\" writeTo=\"debugInvestigateFile\" />\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/comments/350121305","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/issues/862#issuecomment-350121305","issue_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/862","id":350121305,"user":{"login":"noescape00","id":10259355,"avatar_url":"https://avatars0.githubusercontent.com/u/10259355?v=4","gravatar_id":"","url":"https://api.github.com/users/noescape00","html_url":"https://github.com/noescape00","followers_url":"https://api.github.com/users/noescape00/followers","following_url":"https://api.github.com/users/noescape00/following{/other_user}","gists_url":"https://api.github.com/users/noescape00/gists{/gist_id}","starred_url":"https://api.github.com/users/noescape00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noescape00/subscriptions","organizations_url":"https://api.github.com/users/noescape00/orgs","repos_url":"https://api.github.com/users/noescape00/repos","events_url":"https://api.github.com/users/noescape00/events{/privacy}","received_events_url":"https://api.github.com/users/noescape00/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T23:02:09Z","updated_at":"2017-12-07T23:02:09Z","author_association":"CONTRIBUTOR","body":"Also sometimes connector shows that chainHeadersBehavior.PendingTip.Height of the miner is 3-4 blocks behind when both of the nodes have the same tips (same height and hash). "}}
{"actor":{"display_login":"noescape00"}}