-
Notifications
You must be signed in to change notification settings - Fork 161
Conversation
Codecov Report
@@ Coverage Diff @@
## development #399 +/- ##
============================================
Coverage 70.71% 70.71%
============================================
Files 42 42
Lines 2339 2339
============================================
Hits 1654 1654
Misses 541 541
Partials 144 144 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Will test tomorrow morning. Pending lint fixes
"github.com/urfave/cli" | ||
) | ||
|
||
type Genesis struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit add godoc comment
) | ||
|
||
type Genesis struct { | ||
Config struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move out of the struct and pass it as a field
Difficulty string `json:"difficulty"` | ||
GasLimit string `json:"gasLimit"` | ||
ExtraData string `json:"extraData"` | ||
Alloc interface{} `json:"alloc"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
ExtraData string `json:"extraData"` | ||
Alloc interface{} `json:"alloc"` | ||
} | ||
type Balance struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto godoc
defer jsonFile.Close() | ||
byteValue, _ := ioutil.ReadAll(jsonFile) | ||
var genesis Genesis | ||
json.Unmarshal(byteValue, &genesis) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check error
return err | ||
} | ||
|
||
err = ioutil.WriteFile("genesis.json", file, 0644) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address lint issue
"github.com/urfave/cli" | ||
) | ||
|
||
type Request struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto godoc comments in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @araskachoi do you think we can address the final comments so that we can merge this PR?
docker/benchmarking/emint/init.sh
Outdated
for i in $(seq 1 $ACCTS) | ||
do | ||
ethermintcli keys add $TESTKEY$i --algo "eth_secp256k1" | ||
ethermintd add-genesis-account $(ethermintcli keys show $TESTKEY$i -a) 1000000000000000000photon,1000000000000000000stake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these need to be aphoton now
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. Thank you for your contributions. |
@araskachoi should we reopen this PR? feel free to do so and ping me once it's R4R 👍 |
example benchmark run:
in the
./docker/benchmark
directory, runbash test.sh 5000
example output:
PLEASE DO NOT MERGE!this PR has a change in the antehandler where it will bypass the exactness (ordering) of the nonce. This is required for sending transactions rapidly.The out-of-sequence nonce checking has been included in https://github.com/ChainSafe/ethermint/pull/550
Closes: #XXX
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)