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
# This is a TOML config file. | |
# For more information, see https://github.com/toml-lang/toml | |
##### main base config options ##### | |
# TCP or UNIX socket address of the ABCI application, | |
# or the name of an ABCI application compiled in with the Tendermint binary | |
proxy_app = "tcp://127.0.0.1:46658" | |
# A custom human readable name for this node |
This file has been truncated, but you can view the full file.
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
I[04-26|03:55:12.352] Starting ABCI with Tendermint module=main | |
I[04-26|03:55:15.032] Starting multiAppConn module=proxy impl=multiAppConn | |
I[04-26|03:55:15.032] Starting localClient module=abci-client connection=query impl=localClient | |
I[04-26|03:55:15.032] Starting localClient module=abci-client connection=mempool impl=localClient | |
I[04-26|03:55:15.032] Starting localClient module=abci-client connection=consensus impl=localClient | |
I[04-26|03:55:15.032] ABCI Handshake module=consensus appHeight=230580 appHash=098D63992705B6438D6FFFC294EFECFB0F8AEF88 | |
I[04-26|03:55:15.032] ABCI Replay Blocks module=consensus appHeight=230580 storeHeight=230580 stateHeight=230580 | |
I[04-26|03:55:15.032] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=230580 appHash=098D63992705B6438D6FFFC294EFECFB0F8AEF88 | |
I[04-26|03:55:15.032] This no |
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
[04-26|02:14:51.279] enterPropose: Not our turn to propose module=consensus proposer=536A73DC7F6CA7D6AE466A73897190F293EDC714 privValidator="PrivValidator{D92F2E17E1B7020D5DE1FEDA0D579C9B1E3C6E0E LH:230410, LR:0, LS:3}" | |
I[04-26|02:14:51.378] Successful handshake with peer module=p2p peer=195.189.195.81:55784 peerNodeInfo="NodeInfo{id: fbad7f39381ff38204453ea07b3b9aea0d92133f, moniker: Gold-V2, network: gaia-4000 [listen 195.189.195.81:46656], version: 0.19.0 ([amino_version=0.9.6 p2p_version=0.5.0 consensus_version=v1/0.2.2 rpc_version=0.7.0/3 tx_index=on rpc_addr=tcp://0.0.0.0:46657])}" | |
I[04-26|02:14:51.378] Starting Peer module=p2p peer=195.189.195.81:55784 impl="Peer{MConn{195.189.195.81:55784} fbad7f39381ff38204453ea07b3b9aea0d92133f in}" | |
I[04-26|02:14:51.378] Starting MConnection module=p2p peer=195.189.195.81:55784 impl=MConn{195.189.195.81:55784} | |
I[04-26|02:14:51.378] Added peer module=p2p peer |
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
docker run -it --rm -v "/tmp:/gaiad" 16b68f708778 init --home=/gaiad | |
docker run -it --rm -v "/tmp:/gaiad" 16b68f708778 start --home=/gaiad | |
docker run -it --rm -v "/tmp:/gaiad" 16b68f708778 show_node_id --home=/gaiad |
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
FROM alpine:3.6 | |
ADD ./ /usr/local/bin/ | |
ENV DATA_ROOT /gaiad | |
# Set user right away for determinism | |
RUN addgroup gaiauser && \ | |
adduser -S -G gaiauser gaiauser |
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
{ | |
"genesis_time": "0001-01-01T00:00:00Z", | |
"chain_id": "gaia-3007", | |
"validators": [ | |
{ | |
"pub_key": { | |
"type": "AC26791624DE60", | |
"value": "uqjtp5kQbMimocc7+/THPPqTC9LR3iQwm7pkvrRec9A=" | |
}, | |
"power": 10000, |
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
# This is a TOML config file. | |
# For more information, see https://github.com/toml-lang/toml | |
##### main base config options ##### | |
# TCP or UNIX socket address of the ABCI application, | |
# or the name of an ABCI application compiled in with the Tendermint binary | |
proxy_app = "tcp://127.0.0.1:46658" | |
# A custom human readable name for this node |
This file has been truncated, but you can view the full file.
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
I[04-16|07:55:01.654] Starting ABCI with Tendermint module=main | |
I[04-16|07:55:03.955] Starting multiAppConn module=proxy impl=multiAppConn | |
I[04-16|07:55:03.955] Starting localClient module=abci-client connection=query impl=localClient | |
I[04-16|07:55:03.955] Starting localClient module=abci-client connection=mempool impl=localClient | |
I[04-16|07:55:03.955] Starting localClient module=abci-client connection=consensus impl=localClient | |
I[04-16|07:55:03.955] ABCI Handshake module=consensus appHeight=157328 appHash=E869DA80550CCF165572EE4137A08E1D9BF04935 | |
I[04-16|07:55:03.955] ABCI Replay Blocks module=consensus appHeight=157328 storeHeight=157328 stateHeight=157328 | |
I[04-16|07:55:03.955] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=157328 appHash=E869DA80550CCF165572EE4137A08E1D9BF04935 | |
I[04-16|07:55:03.956] This no |
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
//select count(*) from language | |
var count int | |
db.Model(&Language{}).Select("count(distinct id)").Count(&count) | |
fmt.Println("count: ",count) | |
models.DB.Model(&models.UserInvitation{}).Select("count(distinct(invitee_id))").Where("invitation_code = ?", "abcd").Count(&result) | |
fmt.Println("count result: ",result) |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/jinzhu/gorm" | |
_ "github.com/lib/pq" | |
) |