Repository navigation
fix: clearer CLI output and docs, key file mode, contract timeout - #171
Open
SIDDHANTCOOKIE wants to merge 1 commit into
Open
SIDDHANTCOOKIE wants to merge 1 commit into
SIDDHANTCOOKIE wants to merge 1 commit into
Conversation
CLI audit fixes: - README/help: document [amount] [gas_limit] [fee_per_gas] for deploy/call, replace the deploy example that ran out of gas, list ban/unban/list-banned - print a per-transaction result after mine so failed deploys/calls are shown - balance prints full addresses - clearer message when a second send hits an already pending nonce - keystore.json is created owner-only (0600) - move default ports and key file mode into node_config Contract execution: start the 5s run-time budget when the sandbox process reports ready, and do not charge sub-call time to the calling contract. Process start-up on spawn platforms (Windows) took ~4s and made cross-contract calls and some unit tests time out.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #166 (base is its branch, so the diff shows only this change; retarget to
mainonce #166 merges).Small fixes from a MiniChain audit of the CLI. No design changes.
CLI and docs
helpdocumenteddeploy/callas[amount] [fee]. The CLI takes[amount] [gas_limit] [fee_per_gas], and gas defaults to 0, so following the docs made every deploy and call fail. Both now show the real arguments and say gas is required.deploy examples/counter.py 0 100) ran out of gas and created no contract. It is nowdeploy examples/counter.py 0 20000 0.mine, print one result line per transaction (status, gas used, error, contract address). Failed deploys and calls were previously shown as plain mined transactions.balanceprints full addresses, so they can be copied intocall/send.sendwhile the nonce is already pending now says so instead of listing unrelated causes.helplistsban,unban,list-banned.keystore.jsonis created owner-only (0600), matchingnodekey. The README notes it is unencrypted.node_config.py.Contract execution timeout
The 5s run-time budget started at process launch, so it also counted sandbox start-up (about 4s on Windows, where processes are spawned) and any nested sub-call. Cross-contract tests always timed out there and a few unit tests were flaky. Now:
MAX_CALL_DEPTH);network_config.py.A contract that loops forever is still killed after 5s of its own running time.
Testing
Full suite on this branch: 245 passed. Before the timeout change, 2 cross-contract tests already failed on #166's branch and 3 other contract tests were flaky on Windows.
Not covered by tests: the new
mineoutput lines, the reworded rejection message, the help rows and the 0600 keystore mode.