Skip to content

[GOAL2-796] re-enable firstvalid and lastvalid for goal clerk#55

Merged
zeldovich merged 13 commits intoalgorand:masterfrom
EvanJRichard:evan/firstvalid_lastvalid
Jun 20, 2019
Merged

[GOAL2-796] re-enable firstvalid and lastvalid for goal clerk#55
zeldovich merged 13 commits intoalgorand:masterfrom
EvanJRichard:evan/firstvalid_lastvalid

Conversation

@EvanJRichard
Copy link
Copy Markdown
Contributor

Summary

During the kmd/algod integration PR, goal clerk's --firstValid and --lastValid options were disabled. This PR proposes to re-enable these options.

Of note, no additional validation is provided to these options: the user is allowed to enter whatever --firstValid and --lastValid they wish. Both must be provided as nonzero args for the default behavior (use the current round, and that round+1000, as the validity period).

Test Plan

Used goal clerk send -out to generate txfiles before and after the change, and then goal clerk inspect to inspect them. Got expected output: before the change, txns were always valid from curRound to curRound+1000, after the change, the user can define these values.

Evan Richard added 4 commits June 19, 2019 12:12
…rks as it did before) and ConstructPaymentForRound (which is as ConstructPayment, but instead of being valid for curRound -> curRound+1000, it is valid for whatever passed rounds without validation)
Comment thread cmd/goal/clerk.go Outdated
Comment thread cmd/goal/clerk.go Outdated
Comment thread libgoal/libgoal.go Outdated
Comment thread cmd/goal/clerk.go Outdated
Comment thread libgoal/libgoal.go Outdated
Comment thread libgoal/libgoal.go Outdated
Comment thread cmd/goal/clerk.go Outdated
Comment thread libgoal/unencryptedWallet.go Outdated
Comment thread libgoal/unencryptedWallet.go Outdated
Comment thread test/e2e-go/cli/perf/payment_test.go Outdated
Comment thread test/e2e-go/cli/perf/payment_test.go Outdated
Comment thread test/e2e-go/cli/perf/payment_test.go Outdated
@EvanJRichard EvanJRichard requested a review from zeldovich June 19, 2019 23:38
@EvanJRichard EvanJRichard dismissed derbear’s stale review June 19, 2019 23:40

dismissing stale/addressed review

@zeldovich zeldovich merged commit ece2bbb into algorand:master Jun 20, 2019
derbear pushed a commit to derbear/go-algorand that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants