-
-
Notifications
You must be signed in to change notification settings - Fork 760
Flux Configuration #1581
-
Hello, I'm trying to configure Miningcore for Flux.
But I find the error below, something with the wallet, I found another post here that said that the wallet changed and it worked, but I changed the wallet, and the same error continues, I checked if the address was valid in the explorer and everything ok to me looks.
I used a zcash example which appears to be the same currency family, removing the zaddress as below.
Is there any more configuration to be done or what am I missing?
[2023年01月09日 03:41:06.5540] [E] [flux] System.ArgumentException: value should be 20 bytes (Parameter 'value') System.ArgumentException: value should be 20 bytes (Parameter 'value') at NBitcoin.KeyId..ctor(Byte[] value) at Miningcore.Blockchain.Bitcoin.BitcoinUtils.AddressToDestination(String address, Network expectedNetwork) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinUtils.cs:line 20 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase`1.AddressToDestination(String address, Nullable`1 addressType) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 527 at Miningcore.Blockchain.Equihash.EquihashJobManager.AddressToDestination(String address, Nullable`1 addressType) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 71 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase`1.PostStartInitAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 481 at Miningcore.Blockchain.JobManagerBase`1.StartAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112 at Miningcore.Blockchain.Equihash.EquihashPool.SetupJobManager(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Equihash/EquihashPool.cs:line 69 at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392 at NBitcoin.KeyId..ctor(Byte[] value) at Miningcore.Blockchain.Bitcoin.BitcoinUtils.AddressToDestination(String address, Network expectedNetwork) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinUtils.cs:line 20 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase`1.AddressToDestination(String address, Nullable`1 addressType) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 527 at Miningcore.Blockchain.Equihash.EquihashJobManager.AddressToDestination(String address, Nullable`1 addressType) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 71 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase`1.PostStartInitAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 481 at Miningcore.Blockchain.JobManagerBase`1.StartAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112 at Miningcore.Blockchain.Equihash.EquihashPool.SetupJobManager(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Blockchain/Equihash/EquihashPool.cs:line 69 at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/edvaldo/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392
my coin conf
hidden sensitive data
"id": "flux",
"enabled": true,
"coin": "flux",
"address": "t1eABWjmRhwmQpHqWkL6KEDYPpEu3pzbaKm",
"rewardRecipients": [
{
"type": "op",
"address": "t1eABWjmRhwmQpHqWkL6KEDYPpEu3pzbaKm",
"percentage": 1
}
],
"blockRefreshInterval": 200,
"jobRebroadcastTimeout": 2,
"clientConnectionTimeout": 600,
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 50,
"checkThreshold": 50
},
"ports": {
"3028": {
"difficulty": 1,
"varDiff": {
"minDiff": 0.5,
"maxDiff": 50,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30,
"maxDelta": 1
}
}
},
"daemons": [
{
"host": "",
"port": 16100,
"user": "",
"password": ""
}
],
"paymentProcessing": {
"enabled": true,
"minimumPayment": 0.1,
"payoutScheme": "PPLNS",
"payoutSchemeConfig": {
"factor": 2.0
}
}
}```
thanks for all the help
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 4 comments 5 replies
-
What does the flux entry look like in your coins.json file? If you're using the miningcore version as is then it has the wrong algo in there.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Hello.
Thanks for your information.
I have below in coins.json for flux.
"flux": {
"name": "Flux",
"canonicalName": "Flux",
"symbol": "FLUX",
"family": "equihash",
"website": "https://www.runonflux.io/",
"market": "https://coinmarketcap.com/currencies/zel",
"twitter": "https://twitter.com/RunOnFlux",
"telegram": "https://t.me/zelhub",
"discord": "https://discord.gg/tTpj2Wm",
"networks": {
"main": {
"diff1": "0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"solutionSize": 100,
"solutionPreambleSize": 1,
"solver": {
"hash": "equihash",
"args": [
144,
5,
"BgoldPoW"
]
},
"coinbaseTxNetwork": "main",
"payFoundersReward": false
},
"test": {
"diff1": "0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"solutionSize": 100,
"solutionPreambleSize": 1,
"solver": {
"hash": "equihash",
"args": [
144,
5,
"BgoldPoW"
]
},
"coinbaseTxNetwork": "testnet",
"payFoundersReward": false
},
"regtest": {
"diff1": "0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"solutionSize": 100,
"solutionPreambleSize": 1,
"solver": {
"hash": "equihash",
"args": [
144,
5,
"BgoldPoW"
]
},
"coinbaseTxNetwork": "regtest",
"payFoundersReward": false
}
},
"usesZCashAddressFormat": false,
"useBitcoinPayoutHandler": true,
"explorerBlockLink": "https://explorer.bitcoingold.org/insight/block/$hash$",
"explorerTxLink": "https://explorer.bitcoingold.org/insight/tx/{0}",
"explorerAccountLink": "https://explorer.bitcoingold.org/insight/address/{0}"
},
Beta Was this translation helpful? Give feedback.
All reactions
-
that is part of the problem. Flux uses 125/4 algo which is not part of miningcore and will need to be added before Flux will work. Then once you get the algo added you will have to make more modifications so it will payout the rewards correctly. I forget if they call it founder, dev rewards or if it's masternode rewards but it will reject all found blocks until that is added in there
Beta Was this translation helpful? Give feedback.
All reactions
-
Ahhh ok.
I really don't know how to add 125/4
The developer rewards seem to be on coins.json, but the rest I have no idea haha.
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions
-
Has anyone managed to get this to work? I have the server running with flux daemon, it is sync'd and all is working well. Ports are correct but miningcore can't seem to connect to the daemon and all I get is waiting to connect to daemon.
Beta Was this translation helpful? Give feedback.
All reactions
-
Found the issue on the daemon connection but now get the same error as above
[2023年02月08日 13:25:22.9516] [E] [flux] System.ArgumentException: value should be 20 bytes (Parameter 'value') System.ArgumentException: value should be 20 bytes (Parameter 'value')
at NBitcoin.KeyId..ctor(Byte[] value)
at Miningcore.Blockchain.Bitcoin.BitcoinUtils.AddressToDestination(String address, Network expectedNetwork) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinUtils.cs:line 20
at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.AddressToDestination(String address, Nullable1 addressType) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 527
at Miningcore.Blockchain.Equihash.EquihashJobManager.AddressToDestination(String address, Nullable1 addressType) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 71 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.PostStartInitAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 481
at Miningcore.Blockchain.JobManagerBase1.StartAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112 at Miningcore.Blockchain.Equihash.EquihashPool.SetupJobManager(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Equihash/EquihashPool.cs:line 69 at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392 at NBitcoin.KeyId..ctor(Byte[] value) at Miningcore.Blockchain.Bitcoin.BitcoinUtils.AddressToDestination(String address, Network expectedNetwork) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinUtils.cs:line 20 at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.AddressToDestination(String address, Nullable1 addressType) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 527 at Miningcore.Blockchain.Equihash.EquihashJobManager.AddressToDestination(String address, Nullable1 addressType) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Equihash/EquihashJobManager.cs:line 71
at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.PostStartInitAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 481 at Miningcore.Blockchain.JobManagerBase1.StartAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112
at Miningcore.Blockchain.Equihash.EquihashPool.SetupJobManager(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Blockchain/Equihash/EquihashPool.cs:line 69
at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/ubuntu/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392
Beta Was this translation helpful? Give feedback.
All reactions
-
Just playing around with the config and changed this
"usesZCashAddressFormat": true,
"useBitcoinPayoutHandler": false,
The error above refers to decoding the address if set to bitcoin, it is looking for a btc address. I may be completely off with what I am thinking, however, given this is an equihash algo, should this be set to Zcash format.
However when I do change it I then get this error.
[2023年02月08日 15:15:28.5706] [E] [flux] Pool z-address is not configured
[2023年02月08日 15:15:28.5706] [E] [Core] Cluster cannot start. Good Bye!
Not sure if I am on the right track or not.
Beta Was this translation helpful? Give feedback.
All reactions
-
you will need a t address and a z address for this to work after you take care of the issues i mentioned above
Beta Was this translation helpful? Give feedback.
All reactions
-
any news on flux please?
Beta Was this translation helpful? Give feedback.