oliverw / miningcore

Miningcore is a high-performance Mining Pool Software for Linux and Windows.
https://store.miningcore.pro
MIT License
730 stars 674 forks source link

Error during UpdateJob - Equihash #1685

Open PostalPanda opened 1 year ago

PostalPanda commented 1 year ago
[2023-05-07 21:39:21.6039] [E] [zec] Error during UpdateJob System.MissingMethodException: Method not found: 'Void NBitcoin.BitcoinStream.ReadWrite(!!0 ByRef)'.
   at NBitcoin.Zcash.ZcashTransaction.ReadWrite(BitcoinStream stream)
   at NBitcoin.BitcoinStream.ReadWrite[T](T& data)
   at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 167
   at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, EquihashSolver solver) in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 403
   at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 126    at NBitcoin.Zcash.ZcashTransaction.ReadWrite(BitcoinStream stream)
   at NBitcoin.BitcoinStream.ReadWrite[T](T& data)
   at Miningcore.Blockchain.Equihash.EquihashJob.BuildCoinbase() in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 167
   at Miningcore.Blockchain.Equihash.EquihashJob.Init(EquihashBlockTemplate blockTemplate, String jobId, PoolConfig poolConfig, ClusterConfig clusterConfig, IMasterClock clock, IDestination poolAddressDestination, Network network, EquihashSolver solver) in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJob.cs:line 403
   at Miningcore.Blockchain.Equihash.EquihashJobManager.UpdateJob(CancellationToken ct, Boolean forceUpdate, String via, String json) in /home/miningcore/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 126

I have checked that NBitcoin is installed and that it is the correct version, rebuilt with dotnet after removing obj and bin, and I can not seem to figure out why it's throwing this error.