Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addinga a stresser script to test wallet functions #59

Merged
merged 21 commits into from Feb 24, 2020

Conversation

chasingkirkjufell
Copy link

The script is written in bash version 5.0.3. OSX users may need to install gshuf and substitude all shuf with gshuf. The users will need to specify the navpath and then configure the tests as needed in the script.

@aguycalled
Copy link
Owner

aguycalled commented Feb 7, 2020

Mac users also need to subsitute line 445 with

	echo ${local_array_best_hash[@]} $(printf "%s\n" "${local_array_best_hash[@]}" | LC_CTYPE=C sort -z -u | uniq | grep -n -c .)
```</s>

@chasingkirkjufell
Copy link
Author

Mac users also need to subsitute line 445 with

	echo ${local_array_best_hash[@]} $(printf "%s\n" "${local_array_best_hash[@]}" | LC_CTYPE=C sort -z -u | uniq | grep -n -c .)

do you mean substitute line 474
if [ $(printf "%s\000" "${local_array_best_hash[@]}" | LC_CTYPE=C sort -z -u | uniq | grep -n -c .) -gt 1 ];
with
if [ $(printf "%s\n" "${local_array_best_hash[@]}" | LC_CTYPE=C sort -z -u | uniq | grep -n -c .) -gt 1 ];
?

And I think maybe the same for line 499 when checking state hash? did you also change line 499?
if [ $(printf "%s\000" "${local_array_statehash[@]}" | LC_CTYPE=C sort -z -u | uniq | grep -n -c .) -gt 1 ];

@aguycalled
Copy link
Owner

yes, sorry i confused it with a debug line from my script. the lines from your script which should be substituted are 478 and 503

@chasingkirkjufell
Copy link
Author

Yes, well i referenced the wrong lines as well. :P I would like to change the file name of stresser. I guess the only way is to create a different PR and close this one?

@aguycalled
Copy link
Owner

if you mean the name of the script file, you can make a new commit with the new name (removing the old file and adding the new one)

@aguycalled aguycalled merged commit 294cd80 into aguycalled:dao_extension Feb 24, 2020
aguycalled pushed a commit that referenced this pull request May 19, 2020
* rename

* rename

* only read from coinbase without vote cache

* update qa/rpc-tests/dao-consultations-with-answers-staking.py

* revert miner.cpp

* only read from coinbase without vote cache

* declare pointer

* read cached voter before modifier

* set limits for Consensus::TYPE_NUMBER

* reflection and voting cycles start at 1

* do not exclude consultations not fully finished

* require support for range consultations

* do not show cycle status for finished votings

* allow higher limit for gui consultation range

* fix proposal with negative values

* catch exception

* propose answer context menu

* wrap for question consultation

* bigger chart size and many windows at the same time fix

* fix range consultation abstain vote

* fix first block rane consultation

* change text status description

* check for active consensus consultation in mempool

* check cycle count for range consultation

* check for correct status

* check for correct status staking

* base view has priority over mempool view

* consultation.tostring()

* catch exception

* catch more exceptions

* fix duplicated answers

* fix multiple reorg consultations

* fix reorg for staker votes

* fix text for CONSENSUS_PARAM_CONSULTATION_MIN_SUPPORT

* remove propose change from consultation contextual menu

* fix reflection length

* last cycle status text

* check CONSENSUS_PARAM_CONSULTATION_MAX_SUPPORT_CYCLES against CONSENSUS_PARAM_CONSULTATION_MIN_CYCLES

* prevent simultaneous voting of CONSENSUS_PARAM_CONSULTATION_MIN_CYCLES and CONSENSUS_PARAM_CONSULTATION_MAX_SUPPORT_CYCLES

* fix consultation answer hash

* remove old cfund files

* getstakervote rpc

* fix restore staker vote

* text font size

* remove propose change for cfund context menu

* fix abstain text

* show abstain votes

* clear parent when view is empty

* change votes data struct

* fix layout when no weight

* prevent 100% minimums

* payment request fee

* update test

* fix qa/rpc-tests/dao-consultations-with-answers-staking.py

* fix fund voting last cycle

* fix consultation range creation

* fix consultation range check

* fix range consultation support reset

* remove trailing zeros

* show support chart when supported

* fix supported consultations

* read voter before clearing

* fix 65

* break text lines

* fix 0 voting range

* fix log

* fix createpaymentrequest

* fix tests

* check for daoextension entries in cfunddb-statehash.py

* move GetCFundDBStateHash out of coins.cpp

* default showall for listconsultations

* fix merge patches

* fix qa/rpc-tests/cfund-fork-reorg-proposal.py

* fix qa/rpc-tests/dao-consultations.py

* fix qa/rpc-tests/dao-consultation-consensus.py

* fix missing comma

* fix statehash votes

* add extra log for modifiers

* fdirty adjustments

* votelist clear

* fdirty fixes

* HaveEnoughAnswers use view

* votelist diff

* fix tx for txRead

* set default value

* use correct tip when verifychain

* store consensus parameter in state view

* fix nversion r/w

* proposal payment address jsonizer fix

* allow new answers when supported phase

* fix == operator proposals

* fix coins_tests.cpp

* better diff log

* fix operator== proposal

* fix typo

* do not allow support votes when supported state

* read prequest from map

* do not look at chainActive

* look back in whole cycle when length changes

* fix typo

* restart votes when scanning whole cycle

* leave to votestep to roll back votes

* look back in cycles for every consensus change

* cleaner votelist diff log

* add more log

* missing height

* add daoconsensusparams.h to Makefile.am

* reverse 62e59b8

* some extra temp log

* only reset votes at the end of votestep

* recalculate voting cycle when looking at the whole cycle

* CanVote consistency

* CanVote consistency

* revert prev patch

* logic consistency

* some extra log

* add consensus/dao/flags.h to Makefile.am

* extra logging

* only change consensus parameters at the end of votestep()

* consensus parameter change take effect the block after the voting

* add dao-consultation-consensus-cycle-length.py test

* fix log

* revert edc0cea

* do not assume inserted votes can still vote

* recalc votingcycle before recalc votes

* fix gui support button

* wait until status change for not letting vote because of voting cycles

* fix 75

* fix 76

* fix 78

* fix 77

* remove log

* merge abstain and consultation deployments

* invert r/w order

* read staker script

* use uint512 for TransactionGetCoinAge

* fix after merge

* correct SendMoney params

* qt fixes after merge

* fix makefile.qt.include

* fix qt depends

* update .gitmodules

* fix missing line concatenator

* Updated the buttons to work with new theme

* Updated label for proposal

* fix cfund_tests.cpp

* fix deployment gui

* do not show proposals which are completely paid

* fix 81

* fix testnet proposal min fee

* restart testnet

* count all dao entries for the menu icon

* Addinga a stresser script to test wallet functions (#59)

* adding stresser to test NavCoin wallet functions

* update info

added info

* changed file name, delimiter of best block hash and state hash from null to new line, pulling consensus parameter name from commmand

* changed file name, delimiter of best block hash and state hash from null to new line, pulling consensus parameter name from commmand

* make assert state double check permanent

* checking if consensus paraamter correctly being output from node before updating

* fix network density limit logic

* Revert "fix network density limit logic"

This reverts commit fe78f2b.

* fix issues with 1 node network in network splitting phase

* fix network split phase connection logic

* add assert state dual checks for network splitting phase

* turn on -debug=statehash

* reduce block cycle length upper limit

* Modify descriptions

* imrpove statehash logic in network splitting and performance boost

* tidy up output

* reduce sleep time

* print user, password, and rpc port on launch

* add stressor prupose description

* remove extra log

* fixed read coinage txprev

* fix coin age order

* check for max number of answers

* do not show cycle info for paid prequests

* ask for confirmation of fee

* fix payment request detailed dialog

* remove non existent signals

* add missing max

* type cast

* fix count abstain votes

* fix length names

* fix dao gui exclude finished filtering

* add log to test

* fix typo

* include prequest votes in blockheader

* format votes

* fix range consultation

* ranges can't have more answers

* fix proposal exclue filter

* do not show proposals without available coins

* fix look for active consultation in forked chain

* show support button for supported consensus consultations

* allow abstain vote rpc command

* change cfund description gui label

* Update stressor (#60)

* add abstain votes for range consultations

* disable dandelion

* fix abstain vote reorg

* do not clear again mapVotes

* fix logic abstain IsValidVote

* fix logic

* consider vote in CanBeVoted

* clear mapVotes when new cycle

* Fix min upper range for consultation gui

* some extra log

* more log

* fix mapSeen

* change consultations json

* more changes consultation json

* update strings

* trim long strings

* when consensus changes, reset votes of new cycle with old state

* move vClearAnswers declaration

* check before committing

* mark dirty if not broadcasted

* fix consensus description

* fix consensus description

* light wallet voting

* do not unnecessary remove vote outputs for delegated voting

* ignore empty scripts

* fix parent title prequest gui

* fix wrapping

* clean up code and remove rpc user (#62)

* update dao light voting tests

* prevent double voting

* fix qa/rpc-tests/dao-light-voting-cfund.py

* remove log

* show warning if vote is not valid

* push missing header update

* mark blockindex in nStatus for dao data structures

* Fix light voting rpc test (#66)

* fix wrong logic of dual voting

* remove status output

* add light vote range consultation rpc test (#65)

* bench dao state

* fix logic

* increase height for title

* move extended dao log to category daoextra

* take title out of qchart into qlabel

* checks conditional to deployment being active

* move check to ContextualCheckBlock

* use pindexprev instead of chainactive

* reset testnet

* message start

* admit csv2 address as change

* fix typo

* voting cycle fixes and extra info in jsonifier

* fixes max cycles

* fixes current cycles for state

* fix max cycles for accepted state

* reverse mapState k/v

* fix expired for consensus consultation

* fix tests

* fix qa/rpc-tests/dao-consultation-consensus-cycle-length.py

* tests

* bump version to 5.0.0

* Update 5.0.0 release notes

Co-authored-by: Barry Deeney <mxaddict@codedmaster.com>
Co-authored-by: chasingkirkjufell <38635377+chasingkirkjufell@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants