{"action":"created","issue":{"url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/413","repository_url":"https://api.github.com/repos/MetacoSA/NBitcoin","labels_url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/413/comments","events_url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/413/events","html_url":"https://github.com/MetacoSA/NBitcoin/pull/413","id":318753046,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg0ODU2ODM2","number":413,"title":"[WIP] Stratis Altcoin Support","user":{"login":"mikedennis","id":24234359,"node_id":"MDQ6VXNlcjI0MjM0MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/24234359?v=4","gravatar_id":"","url":"https://api.github.com/users/mikedennis","html_url":"https://github.com/mikedennis","followers_url":"https://api.github.com/users/mikedennis/followers","following_url":"https://api.github.com/users/mikedennis/following{/other_user}","gists_url":"https://api.github.com/users/mikedennis/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedennis/subscriptions","organizations_url":"https://api.github.com/users/mikedennis/orgs","repos_url":"https://api.github.com/users/mikedennis/repos","events_url":"https://api.github.com/users/mikedennis/events{/privacy}","received_events_url":"https://api.github.com/users/mikedennis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2018-04-29T21:49:01Z","updated_at":"2018-10-28T21:41:46Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/MetacoSA/NBitcoin/pulls/413","html_url":"https://github.com/MetacoSA/NBitcoin/pull/413","diff_url":"https://github.com/MetacoSA/NBitcoin/pull/413.diff","patch_url":"https://github.com/MetacoSA/NBitcoin/pull/413.patch"},"body":"This is not ready to push yet but wanted to get @NicolasDorier and @dangershony feedback as I had to make some NBitcoin access level changes to get transaction serialization to work.\r\n\r\nAlso Stratis needs some RPC work before it can support the altcoin testing framework. I've logged these issues in the Stratis github which are needed to support the altcoin testing framework as is:\r\n\r\nhttps://github.com/stratisproject/StratisBitcoinFullNode/issues/1355\r\nhttps://github.com/stratisproject/StratisBitcoinFullNode/issues/1356\r\n\r\nThis still needs some more testing for sure but interested in any feedback you have with what I have currently.\r\n"},"comment":{"url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/comments/433744096","html_url":"https://github.com/MetacoSA/NBitcoin/pull/413#issuecomment-433744096","issue_url":"https://api.github.com/repos/MetacoSA/NBitcoin/issues/413","id":433744096,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzc0NDA5Ng==","user":{"login":"mikedennis","id":24234359,"node_id":"MDQ6VXNlcjI0MjM0MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/24234359?v=4","gravatar_id":"","url":"https://api.github.com/users/mikedennis","html_url":"https://github.com/mikedennis","followers_url":"https://api.github.com/users/mikedennis/followers","following_url":"https://api.github.com/users/mikedennis/following{/other_user}","gists_url":"https://api.github.com/users/mikedennis/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedennis/subscriptions","organizations_url":"https://api.github.com/users/mikedennis/orgs","repos_url":"https://api.github.com/users/mikedennis/repos","events_url":"https://api.github.com/users/mikedennis/events{/privacy}","received_events_url":"https://api.github.com/users/mikedennis/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T21:41:46Z","updated_at":"2018-10-28T21:41:46Z","author_association":"CONTRIBUTOR","body":"For the chain syncing test - looks like nbitcoin doesn't like the header payload that Stratis sends it. Here is a snip out of the stratis log:\r\n\r\n```\r\n[2018-10-28 21:33:10.1791 8] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReceiveMessagesAsync>d__29.MoveNext [1-[::ffff:127.0.0.1]:54422] Received message: 'getheaders: GetHeadersPayload'\r\n[2018-10-28 21:33:10.1791 8] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadAndParseMessageAsync (protocolVersion:SENDHEADERS_VERSION,)\r\n[2018-10-28 21:33:10.1791 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer.ProcessMessageAsync ()\r\n[2018-10-28 21:33:10.1791 8] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMessageAsync (protocolVersion:SENDHEADERS_VERSION,)\r\n[2018-10-28 21:33:10.1791 8] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMagicAsync (magic.Count:4,)\r\n[2018-10-28 21:33:10.1791 8] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadBytesAsync (buffer.Count:1,offset:0,bytesToRead:1,)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer.SendMessageAsync (payload:HeadersPayload,)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.SendAsync (payload:HeadersPayload,)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<SendAsync>d__31.MoveNext [1-[::ffff:127.0.0.1]:54422] Sending message: 'headers: HeadersPayload'\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.SendAsync (data.Count:8225,)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<SendAsync>d__32.MoveNext (-)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<SendAsync>d__31.MoveNext (-)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer+<SendMessageAsync>d__99.MoveNext (-)\r\n[2018-10-28 21:33:10.1946 19] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer+<ProcessMessageAsync>d__95.MoveNext (-)\r\n[2018-10-28 21:33:10.8414 12] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerCollection.GetEnumerator ()\r\n[2018-10-28 21:33:10.8414 12] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerCollection.GetEnumerator (-)\r\n[2018-10-28 21:33:10.8414 12] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer.Behavior ()\r\n[2018-10-28 21:33:10.8414 12] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer.Behavior (-)\r\n[2018-10-28 21:33:13.5758 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReadBytesAsync>d__35.MoveNext [1-[::ffff:127.0.0.1]:54422] (-)[STREAM_END]\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReadBytesAsync>d__35.MoveNext (-)$exception:System.OperationCanceledException: The operation was canceled.\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadBytesAsync(Byte[] buffer, Int32 offset, Int32 bytesToRead, CancellationToken cancellation)\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReadMagicAsync>d__34.MoveNext (-)$exception:System.OperationCanceledException: The operation was canceled.\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadBytesAsync(Byte[] buffer, Int32 offset, Int32 bytesToRead, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMagicAsync(Byte[] magic, CancellationToken cancellation)\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReadMessageAsync>d__33.MoveNext (-)$exception:System.OperationCanceledException: The operation was canceled.\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadBytesAsync(Byte[] buffer, Int32 offset, Int32 bytesToRead, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMagicAsync(Byte[] magic, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMessageAsync(ProtocolVersion protocolVersion, CancellationToken cancellation)\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReadAndParseMessageAsync>d__36.MoveNext (-)$exception:System.OperationCanceledException: The operation was canceled.\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadBytesAsync(Byte[] buffer, Int32 offset, Int32 bytesToRead, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMagicAsync(Byte[] magic, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadMessageAsync(ProtocolVersion protocolVersion, CancellationToken cancellation)\r\n   at Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection.ReadAndParseMessageAsync(ProtocolVersion protocolVersion, CancellationToken cancellation)\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeerConnection+<ReceiveMessagesAsync>d__29.MoveNext [1-[::ffff:127.0.0.1]:54422] Receiving cancelled.\r\n[2018-10-28 21:33:13.6235 22] TRACE: Stratis.Bitcoin.P2P.Peer.NetworkPeer.Disconnect (reason:'Receiving cancelled.',exception:<NULL>)\r\n```"}}
{"actor":{"display_login":"mikedennis"}}