Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown transaction optional data" error when calling GetBlock() #1180

Open
atlos-io opened this issue Jul 14, 2023 · 1 comment
Open

"Unknown transaction optional data" error when calling GetBlock() #1180

atlos-io opened this issue Jul 14, 2023 · 1 comment

Comments

@atlos-io
Copy link

Hello,

We are experiencing an error when calling GetBlockCount() on Litecoin Mainnet network. This is the code snippet:

var Network = Litecoin.Instance.Mainnet;
var Rpc = new RPCClient($"{RpcUser}:{RpcPassword}", RpcUrl, Network);

var blockCount = Rpc.GetBlockCount();
var block = Rpc.GetBlock(blockCount);               // this line generates the error

Error: "Unknown transaction optional data"

The code works fine with other networks, such as Bitcoin.

Has anyone seen anything like this?

@atlos-io atlos-io changed the title "Unknown transaction optional data" error when calling GetBlockCount() "Unknown transaction optional data" error when calling GetBlock() Jul 14, 2023
@lontivero
Copy link
Contributor

This is not a NBitcoin error but a Litecoin error message. Open and issue in Litecoin's github repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@lontivero @atlos-io and others