Skip to content

Instantly share code, notes, and snippets.

View letterj's full-sized avatar

Jay B Payne letterj

View GitHub Profile
$ emintcli keys add newKey
{
"name": "newKey",
"type": "local",
"address": "cosmos1lcqjj2xjdpfa0twl00zr87cf0zcs6zc2jkssnc",
"pubkey": "cosmospub179jcuvjpqjm5068qadsqzfzx977aghd6eyvrkfmzms9r6c650caf8g4jgy57rckd67v9jaqc2733dp3h74s0993k0lwzngts3txwdh9wdez0xqsx2rqa3q",
"mnemonic": "opera soccer cram rebel soup vivid profit lobster level actor design current legal little chest dignity best coach argue eyebrow above pudding net still"
}
curl -X POST \
--data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x2f89093bf447f96d00bc815ac2fb1e51695c8050bc22bc11f8ea12ab4bf828af"],"id":1}' \
-H "Content-Type: application/json" \
http://localhost:8545 | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xd2fc72f8b0095c1f536de856aef1959a269f3d71bc7b38f014fc90060e10de80",
Running the script from etherment-scripts. It is the original script with the exception of uncommenting the getBlock command
> ethermint-scripts@1.0.0 testDeploy /Users/letterj/workshop/chainsafe/ethermint-scripts/web3
> node ./deploy_contract.js
Unlocked account address: 0x96d51a7B830ADB1D0706f0F8A0B9BcEbcAD4Afb8
Contract Address: 0x2Abc87e407Ce61921B6d4Ba4A69fb20Ac194dfce
Tx 0 : 0x00000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000100000000000000000000000000000010000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Tx 0 : 0x0002000000000000000400000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
Results from eth.getBlock
{
difficulty: null,
extraData: null,
gasLimit: 4294967295,
gasUsed: null,
hash: '0x75dd2700cc046bbc839d9b7962241f800dabd552aa56faff16defb9e95494050',
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000010000008000000000000000200000
080000020000000000000000000000000000000000000000000001000000000000000000000200000000000000000000000000000008000000000000
000000000000000000000000000000000000000002000000000002000000000000000000000000000000000000000000000000000000000000000000
pragma solidity >=0.4.22 <0.7.0;
/**
* @title StorageMsg
* @dev Store & retreive value in a variable
*/
contract StorageMsg {
uint256 number;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7E1iCPmBuD+PS6POHRg3Blx7Bu1L3EBJEmyKHXjQUN0ll80WOYo0VIZKoyCxlX5PQtfg0CteALga4o9eYDbeK2BPnOBc9ECoVcOppREZy+GqlNn8WpvM3Ur8G56HljLz/rUiDJWXx9Gu+Qxv9k953TrdxgJXW9exzzBqOwn5IatNYzOoQrXMrlkYL94gO3zm8hs1VMk3FYhVu9l2CTF61O4l68Xt9kKcjhAatneZidokpQk8Un60QmmV8PfRrBPhWfK4rFWJrjkW2BmSBYOIMKD07OWjwi6ve2c0MEbMaDIBz/+wDK+P4w/xgmubqtYy9kexxpLiO03BjNkpEra7ltjz01yzCAFfKp+1L4DanI9FsVv0hf1jtisUUNrZ+iI60Feud3tXbuOo3+YR6oMMhWBkFiL9Zd6vVelQ5TL/NjM6pEGdogwn9Sv9vk16ssxZRxh12zUQTHSQWZ2iVrfmE4kcFLnwJY7La4rNqN7I0d7j1cOw7U1pNOS6tHDfX5cPWBHsxYAAKcs0KzgL3gle1P4N1n6XWC3QNnwuUWD71XzSnvj9K73gdyFxlw0e34C1dAK4f0/vhDL1RUHJ6NwXgyCl/ZskYbIZZkk0PLXeV9YpmHlvV7Gz5SMRxAPin/HmxQHUk5AWE9WGy+n8No5yDX9NCy9C6hw2EJQP8K3ed3w== pidc@ipad
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOqjKtN47ns0bSH7RZTDh7FwnlN6O8o0wXQ+ERDLfw5M pirack
0x94105ebb3b7823abb44cd000cbc9ec1ed5cfe52d
Verifying my Blockstack ID is secured with the address 1AkaBaCfwioFVEh2FTNJcVV44u4JfBtjX6 https://explorer.blockstack.org/address/1AkaBaCfwioFVEh2FTNJcVV44u4JfBtjX6

Best Performance gains with Memory Allocation using jemalloc

Current version of tcmalloc

According to Sean, this is the version of memory allocator

   libtcmalloc-minimal4                 2.4-0ubuntu5.16.04.1