Kudaraidee / miningcore-xiaolin1579

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

debian 12 build failure #77

Open mboyd1 opened 3 months ago

mboyd1 commented 3 months ago
 Building into ../../build
MSBuild version 17.3.4+a400405ba for .NET
  Determining projects to restore...
  Restored /home/miningcore/miningcore-xiaolin1579/src/Miningcore/Miningcore.csproj (in 32.28 sec).
CSC : warning CS2002: Source file '/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Crypto/Hashing/Algorithms/CpuPower.cs' specified multiple times [/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Miningcore.csproj]
CSC : warning CS2002: Source file '/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Crypto/Hashing/Algorithms/Minotaurx.cs' specified multiple times [/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Miningcore.csproj]
/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Blockchain/Ethereum/EthereumPayoutHandler.cs(505,13): error CS0152: The switch statement contains multiple cases with the label value '622279' [/home/miningcore/miningcore-xiaolin1579/src/Miningcore/Miningcore.csproj]

seems related to ethereum payout handling, is there a way I can just disable ethereum support to get the build past this error? or otherwise resolve this build failure..

mboyd1 commented 3 months ago

I just removed the whole case switch section in EthereumPayoutHandler.cs that it was complaining about starting at line 505, and was able to build. I don't need ethereum support for this use case so that works for me for now. ETH is proof-of-stake now anyway, but maybe some people need this code still for ETH classic or something