forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to mark an account as Non-Participating. (algorand#261)
* Add ability to become nonpart to keyreg txns, and add corresponding edit to keyreg test * Add check in WellFormed re: key reg txns Add test for this behavior * Remove an unrelated comment that is wrong. * Add marknonparticipating command to goal. Untested WIP * Add test for go-nonparticipating to onlineStatusChange_test.go (formerly known as goOnlineGoOffline_test.go) Add MakeUnsignedBecomeNonparticipatingTx to libgoal Use libgoal.MakeUnsignedBecomeNonparticipatingTx in goal * Add a new consensus version. Add a flag to consensus version indicating support of become-nonparticipating transactions. Check this flag in keyreg.go:apply. * Check in `WellFormed` and `apply` for the case where nonpart-transactions are not supported, but a transaction is marking an account nonparticipatory * Add a unit test for new error behavior * Fix test regression. Refactor WellFormed slightly. * test increasing confirmation deadline since more transactions are being issued * Only do the "nonparticipation transaction" part of the test on those networks supporting nonparticipation transactions * Test out (WIP) a very high timeout on this test, to confirm it's not the timeout * Fix the bug in the onlineStatusChange_test * Address review comment: goal marknonparticipating description * Address review comment: use ConsensusVFuture * Address review comment: newline in imports * `make sanity`, per PR guidelines. * Skip become-nonpart tests if they are not supported * Add a version of onlineStatusChange_test that tests future consensus protocols. Also, add requisite template for doing this
- Loading branch information
1 parent
b819395
commit e48332f
Showing
13 changed files
with
349 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.