You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug with Litecoin serializer which will throw System.FormatException: Unknown Transaction optional data for some transactions in some blocks. To reproduce run:
var customHash = (await Rpc.GetBlockHeaderAsync(2284382)).GetHash();
var block = await Rpc.GetBlockAsync(customHash);
or
var resp = await Rpc.SendCommandAsync(RPCOperations.getblock, CancellationToken.None, customHash, false);
var block2 = Network.Main.Consensus.ConsensusFactory.CreateBlock();
var s = new BitcoinStream(new MemoryStream(Encoders.Hex.DecodeData(resp.ResultString)), false) { ConsensusFactory = Network.Main.Consensus.ConsensusFactory };
block2.ReadWrite(s);
Example transaction that causes the problem can be found in block 2284382 with 3bed06209f382e20f7b4eb1724366835874769763744d3cc429182422c8e7950 hash.
The text was updated successfully, but these errors were encountered:
There is a bug with
Litecoin
serializer which will throwSystem.FormatException: Unknown Transaction optional data
for some transactions in some blocks. To reproduce run:or
Example transaction that causes the problem can be found in block
2284382
with3bed06209f382e20f7b4eb1724366835874769763744d3cc429182422c8e7950
hash.The text was updated successfully, but these errors were encountered: