PoS testing: incorrout when voting on a proposal and voting fails
Summary
Voting failed
Steps to reproduce
Try to vote on a proposal
Expected behavior
Should be able to vote on any valid proposal.
Problematic behavior
Tried to vote (from CLI) on someone else's proposal (never voted on it before) and it failed.
Crown-core environment info
MX 17.1 linux
Crown-core application info
Crown version v0.12.7.1-2029222a pipeline 873 build 5011
Relevant logs, dumps and/or screenshots
mark@x230:~/.crownpos/testnet3$ pcrowncli mnbudget vote-many af2cfa5867bcb0d5ac58a001ec9e42cd453655130a7518c8c492119be406d346 yes
{
"overall" : "Voted successfully 0 time(s) and failed 2 time(s).",
"detail" : {
"MN01" : {
"result" : "time between votes is too soon - d925aff71f4b78f9911bebdb915dc970b949251d6083f305a5c6c59a790c991c - 45\n"
},
"MN02" : {
"result" : "time between votes is too soon - 48acc77b54e9f0a4b6cfca4b92518733dce99bf6add47c7bf7f3024ffc76078b - 45\n"
}
}
}
but it should have been OK since
mark@x230:~/.crownpos/testnet3$ pcrowncli getblockcount
16123
mark@x230:~/.crownpos/testnet3$ pcrowncli mnbudget show
{
"defunctec" : {
"Name" : "defunctec",
"URL" : "testyournet.com",
"Hash" : "af2cfa5867bcb0d5ac58a001ec9e42cd453655130a7518c8c492119be406d346",
"FeeHash" : "3b0f6636961dab2638039ca6fe2addd620a50920c4734f85bfe3200a48e151fe",
"BlockStart" : 15600,
"BlockEnd" : 16625,
"TotalPaymentCount" : 20,
"RemainingPaymentCount" : 9,
"PaymentAddress" : "tCRWNx1f2CVwox8dJXwjFjS9NRxhqqmP6gfWT",
"Ratio" : 1.00000000,
"Yeas" : 2,
"Nays" : 0,
"Abstains" : 0,
"TotalPayment" : 50.00000000,
"MonthlyPayment" : 2.50000000,
"IsEstablished" : 1,
"IsValid" : true,
"IsValidReason" : "",
"fValid" : true
},
"walk02" : {
"Name" : "walk02",
"URL" : "walkjivefly.com",
"Hash" : "b4c4d6720913830b6cf76b69c9ec171d2c226d237538de1a07c173a53743dce4",
"FeeHash" : "2d160235f124b273cf2db00983a274de62dc6cd007ee2ec8c714ecb40786f479",
"BlockStart" : 16100,
"BlockEnd" : 18625,
"TotalPaymentCount" : 50,
"RemainingPaymentCount" : 49,
"PaymentAddress" : "tCRWPFou6bJ3ya1zjrDhdCrGXVhN5oaGVa5XN",
"Ratio" : 1.00000000,
"Yeas" : 2,
"Nays" : 0,
"Abstains" : 0,
"TotalPayment" : 1000.00000000,
"MonthlyPayment" : 20.00000000,
"IsEstablished" : 1,
"IsValid" : true,
"IsValidReason" : "",
"fValid" : true
}
}
Also tried to vote from QT wallet with a similar result:
Possible fixes
I'm guessing the number on the end of the result message may be the number of seconds since the last vote on any proposal.
/cc @artem
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information