MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.86k stars 844 forks source link

System.MissingMethodException: Method not found: 'Void NBitcoin.BitcoinStream.ReadWrite(!!0 ByRef)' #1080

Open konstiantyn opened 2 years ago

konstiantyn commented 2 years ago

[2022-01-11 09:52:33.8559] [E] [zec] Error during UpdateJob System.MissingMethodException: Method not found: 'Void NBitcoin.BitcoinStream.ReadWrite(!!0 ByRef)'. at NBitcoin.Zcash.ZcashTransaction.ReadWrite(BitcoinStream stream) at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 175 at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, Equih$ at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 132 at NBitco$ at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 175 at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, Equih$ at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/dev/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 132

knocte commented 2 years ago

You upgraded to new version of NBitcoin recently, right?

konstiantyn commented 2 years ago

Yes. right

knocte commented 2 years ago

Then somewhere you're still using the old version of NBitcoin without knowing it.

knocte commented 2 years ago

Maybe you didn't update it in all projects of the solution?

konstiantyn commented 2 years ago

I'm using it. https://github.com/LykkeCity/NBitcoin.Zcash