check out docs.nubits.com for the full list of commands and info
Heâs a wizard, but living in the âOld Countryâ introduces âwizard lagâ
Iâd rather be a necromancer⌠or a paladin. We still talking about Nu stuff or dungeons and dragons?
My assumption that youâre no wizard was referring to a dialogue between Frodo and Gandalf in the movie âThe Lord of the Ringsâ:
I never saw the movie⌠Now iâm outed as a RaPi noob and a LotR noob.
I recommend the extended editions if you ever plan to watch the movies. The cinema cuts suck in my opinion.
But hey, youâre the RaPi noob who compiled a working Nu client!
âŚcouldâve done the same if I had access to the source code
NuBox can live on existing Peerbox installation.
However, Nu is still closed so I can not compile binaries. I know someone who has access to source code can do it and give me the binaries but Iâm not ready to play that.
I see no point to rush with this, allow me to complete stable Peerbox and then this can be simple extension.
If you have any questions please ask, I do not come to this forum often but P.M. me.
Iâve started to play with the daemon for RaPi and encountered problems that I could reproduce in the debug windows of the Linux QT application.
setvote
doesnât work like it should. Thereâs always âError: type mismatchâ reported when trying to set votes. I searched docs.nubits.com but found no help.
Even if you copy the example from
[quote]help setvote
setvote '<'vote>
is the complete vote in JSON. Example:
{âcustodiansâ:[{âaddressâ:âbPwdoprYd3SRHqUCG5vCcEY68g8UfGC1d9â,âamountâ:100.00000000},{âaddressâ:âbxmgMJVaniUDbtiMVC7g5RuSy46LTVCLBTâ,âamountâ:5.50000000}],âparkratesâ:[{âunitâ:âBâ,âratesâ:[{âblocksâ:8192,ârateâ:0.00030000},{âblocksâ:16384,ârateâ:0.00060000},{âblocksâ:32768,ârateâ:0.00130000}]}],âmotionhashâ:â8151325dcdbae9e0ff95f9f9658432dbedfdb209â}
[/quote]
to a
it produces an error messageâŚ
Error: type mismatch
Is that what you see?
Thatâs what iâm seeing.
The daemon creates - to be precisely - the message lowercase only:
error: type mismatch
In your command posted above you close the set of âaddressesâ with â]â but there is no opening â[â before the first âaddressâ. That could cause an error if youâre using that exact command.
Well spotted. I need a better editor than gedit to keep track of the bracketsâŚ
Anyway, I tried to copy the output from âhelp setvoteâ
help setvote
setvote
is the complete vote in JSON. Example:
{âcustodiansâ:[{âaddressâ:âBFfSjJyG2DdrDq6znuw5WiCtNQft6kszRoâ,âamountâ:100.00000000},{âaddressâ:âBpVVGncJBtfeXtMA228YyuaFCndjr4nbK7â,âamountâ:5.50000000}],âparkratesâ:[{âunitâ:âBâ,âratesâ:[{âblocksâ:8192,ârateâ:0.00030000},{âblocksâ:16384,ârateâ:0.00060000},{âblocksâ:32768,ârateâ:0.00130000}]}],âmotionhashâ:â8151325dcdbae9e0ff95f9f9658432dbedfdb209â}
as well as other variations. No success.
The most simple "setvote should be
setvote {âcustodiansâ:[],âparkratesâ:[],âmotionhashâ:""}
but that doesnât work as well.
Whereas âsetvoteâ expects a complete set of votes in JSON, thereâs
setmotionvote
to solely set a motionvote. This works.
weâre looking into it.
Try wrapping the getvote command in single quotes
setvote '{"custodians":[{"address":"bPJcVprJmqQgN6fc2C3gFXdiA1e5jByFhd","amount":100},{"address":"bG3vRFNo7GxV2JJjo1YRXTkr4B2yoRWWNy","amount":5}]}'
The addresses are reported to be invalid (new error message; yeah!), but I bet that was on purpose. Wrapping around the command in single quotes did the trick.
I took a valid NBT address and guess whatâŚ
You solved it!
The compete set of votes works as well when being wrapped.
Did I give you a hint by accident when writing this?