Skip to content

Exception on Ubuntu 20.04 #1050

@xclud

Description

@xclud

I run the following code from the blockchain book:

var privateKey = new Key(); // generate a random private key
var publicKey = privateKey.PubKey;

return publicKey.GetAddress(ScriptPubKeyType.Legacy, Network.Main).ToString();

And i get the following exception:

at NBitcoin.Bitcoin.InitSignet() in NBitcoin.dll:token 0x60002fa+0x0
at NBitcoin.Network..cctor() in NBitcoin.dll:token 0x60006be+0x108
--- End of inner exception stack trace ---
at NBitcoin.Network.get_Main() in NBitcoin.dll:token 0x60006bf+0x0

I tried 5.x.x and 6.x.x versions of the library and i get the same results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions