Ethan Buchman
|
c90bf77566
|
rpc: add n_peers to /net_info
|
7 years ago |
Ethan Buchman
|
936d1a0e68
|
some notes about the p2p layer
|
7 years ago |
Vladislav Dmitriyev
|
7c22e47629
|
Replaced NodeInfo's pubkey to ID (#1443)
* Replaced NodeInfo PubKey to NodeID
* Fixed tests and replaced NodeID with ID
* Removed unnecessary method ID()
* Fixed codec_test.go
* Fixed codec_test.go
* Removed unnecessary bracket
* Fixed all tests
* Fixed peer_set_test.go
* Fixed peer_test.go
* Fixed common_test.go
* Fixed common_test.go
* Renamed node_id to id
* Removed peer.ID() from RPC net.go
* Replaced NodeInfo pubKey to ID
* Fixed codec_test.go
* Fixed peer_set_test.go
* Fix pex_reactor_test.go
* Refactored code for privateKey initiali
* Fixed peer_set_test.go
* Fixed test.proto and removed orphan string in codec_test.go
* Fixed pointer to a string
* generate node_key when running tendermint init
* [docs] prefix IPs with node IDs
Refs #1429
* gen_node_key cmd
* [docs/specification/secure-p2p] add a note about config
* fix data race
Closes #1442
```
WARNING: DATA RACE
Write at 0x00c4209de7c8 by goroutine 23:
github.com/tendermint/tendermint/types.(*Block).fillHeader()
/home/vagrant/go/src/github.com/tendermint/tendermint/types/block.go:88 +0x157
github.com/tendermint/tendermint/types.(*Block).Hash()
/home/vagrant/go/src/github.com/tendermint/tendermint/types/block.go:104 +0x121
github.com/tendermint/tendermint/types.(*Block).HashesTo()
/home/vagrant/go/src/github.com/tendermint/tendermint/types/block.go:135 +0x4f
github.com/tendermint/tendermint/consensus.(*ConsensusState).enterPrecommit()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:1037 +0x182d
github.com/tendermint/tendermint/consensus.(*ConsensusState).addVote()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:1425 +0x1a6c
github.com/tendermint/tendermint/consensus.(*ConsensusState).tryAddVote()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:1318 +0x77
github.com/tendermint/tendermint/consensus.(*ConsensusState).handleMsg()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:581 +0x7a9
github.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:539 +0x6c3
Previous read at 0x00c4209de7c8 by goroutine 47:
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*HexBytes).MarshalJSON()
<autogenerated>:1 +0x52
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.invokeMarshalJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:433 +0x88
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec)._encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:82 +0x8d2
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:50 +0x10e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSONStruct()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:348 +0x539
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec)._encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:119 +0x83f
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:50 +0x10e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSONStruct()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:348 +0x539
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec)._encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:119 +0x83f
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:50 +0x10e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSONStruct()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:348 +0x539
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec)._encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:119 +0x83f
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:50 +0x10e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSONStruct()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:348 +0x539
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec)._encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:119 +0x83f
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).encodeReflectJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/json-encode.go:50 +0x10e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino.(*Codec).MarshalJSON()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-amino/amino.go:296 +0x182
github.com/tendermint/tendermint/rpc/lib/types.NewRPCSuccessResponse()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/lib/types/types.go:100 +0x12c
github.com/tendermint/tendermint/rpc/lib/server.makeJSONRPCHandler.func1()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/lib/server/handlers.go:152 +0xab7
net/http.HandlerFunc.ServeHTTP()
/usr/lib/go-1.9/src/net/http/server.go:1918 +0x51
net/http.(*ServeMux).ServeHTTP()
/usr/lib/go-1.9/src/net/http/server.go:2254 +0xa2
github.com/tendermint/tendermint/rpc/lib/server.RecoverAndLogHandler.func1()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/lib/server/http_server.go:138 +0x4fa
net/http.HandlerFunc.ServeHTTP()
/usr/lib/go-1.9/src/net/http/server.go:1918 +0x51
net/http.serverHandler.ServeHTTP()
/usr/lib/go-1.9/src/net/http/server.go:2619 +0xbc
net/http.(*conn).serve()
/usr/lib/go-1.9/src/net/http/server.go:1801 +0x83b
Goroutine 23 (running) created at:
github.com/tendermint/tendermint/consensus.(*ConsensusState).OnStart()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/state.go:250 +0x35b
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*BaseService).Start()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/service.go:130 +0x5fc
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).OnStart()
/home/vagrant/go/src/github.com/tendermint/tendermint/consensus/reactor.go:69 +0x1b4
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*BaseService).Start()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/service.go:130 +0x5fc
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).Start()
<autogenerated>:1 +0x43
github.com/tendermint/tendermint/p2p.(*Switch).OnStart()
/home/vagrant/go/src/github.com/tendermint/tendermint/p2p/switch.go:177 +0x124
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*BaseService).Start()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/service.go:130 +0x5fc
github.com/tendermint/tendermint/node.(*Node).OnStart()
/home/vagrant/go/src/github.com/tendermint/tendermint/node/node.go:416 +0xa1b
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*BaseService).Start()
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/service.go:130 +0x5fc
github.com/tendermint/tendermint/rpc/test.StartTendermint()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/test/helpers.go:100 +0x5b
github.com/tendermint/tendermint/rpc/client_test.TestMain()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/client/main_test.go:17 +0x4c
main.main()
github.com/tendermint/tendermint/rpc/client/_test/_testmain.go:76 +0x1cd
Goroutine 47 (running) created at:
net/http.(*Server).Serve()
/usr/lib/go-1.9/src/net/http/server.go:2720 +0x37c
net/http.Serve()
/usr/lib/go-1.9/src/net/http/server.go:2323 +0xe2
github.com/tendermint/tendermint/rpc/lib/server.StartHTTPServer.func1()
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/lib/server/http_server.go:35 +0xb3
```
* removed excessive comment
Refs https://github.com/tendermint/tendermint/pull/1446#discussion_r180353446
* use the tag interface for pubsub. (#1438)
* use the tag interface for pubsub.
* update tmlibs.
* Fix unresolved conflict.
* improve `show_node_id` (#1433)
* fix show_node_id
* make LoadNodeKey public
* make LoadNodeKey public
* remove if
* remove if
|
7 years ago |
Zaki Manian
|
f907113c19
|
Net_info should print the ID of peers (#1312)
|
7 years ago |
Anton Kaliaev
|
a40518c7da
|
revert adding dial_peers's private flag
|
7 years ago |
Anton Kaliaev
|
8bef3eb1f4
|
private peers
Refs #1126
|
7 years ago |
Ethan Buchman
|
8b74a8d6ac
|
NodeInfo not a pointer
|
7 years ago |
Ethan Buchman
|
e2b3b5b58c
|
dial_persistent_peers -> dial_peers with persistent option
|
7 years ago |
Anton Kaliaev
|
1b455883d2
|
readd /dial_seeds
|
7 years ago |
Anton Kaliaev
|
e4897b7bdd
|
rename manual peers to persistent peers
|
7 years ago |
Anton Kaliaev
|
28fc15028a
|
distinguish between seeds and manual peers in the config/flags
- we only use seeds if we can’t connect to peers in the addrbook.
- we always connect to nodes given in config/flags
Refs #864
|
7 years ago |
Ethan Buchman
|
3089bbf2b8
|
Amount -> Power. Closes #166
|
7 years ago |
Ethan Buchman
|
aea8629272
|
peer interface
|
7 years ago |
Anton Kaliaev
|
83ec9f773a
|
wrote docs for rpc methods [ci skip]
for all of them except unsafe
|
8 years ago |
Anton Kaliaev
|
f803544195
|
new logging
|
8 years ago |
Ethan Buchman
|
cc6dde96c1
|
rpc -> rpc/lib and rpc/tendermint -> rpc
|
8 years ago |
Ethan Buchman
|
fa451fc55c
|
tendermint/rpc -> tendermint/rpc/tendermint
|
8 years ago |
Ethan Buchman
|
992b11c450
|
premerge2: rpc -> rpc/tendermint
|
8 years ago |
Ethan Buchman
|
585ce45a5e
|
rpc: dial_seeds msg. addresses #403
|
8 years ago |
Ethan Buchman
|
1208296dc0
|
DialSeeds takes an AddrBook
|
8 years ago |
rigelrozanski
|
f5c4fdc82a
|
seeds fix
|
8 years ago |
Ethan Buchman
|
b212aa0db3
|
fixes from review
|
8 years ago |
Ethan Buchman
|
12c6594c9b
|
rpc: remove restriction on DialSeeds
|
8 years ago |
Ethan Buchman
|
3cce757adc
|
move DialSeeds to go-p2p and add to rpc
|
9 years ago |
Jae Kwon
|
f0c80837a6
|
Include p2p connection status in RPC net_info
|
9 years ago |
Ethan Buchman
|
6f5baa8414
|
rpc: add app_hash to /status
|
9 years ago |
Jae Kwon
|
ef43af19ab
|
Tendermint <-> Application refactor
|
9 years ago |
Jae Kwon
|
c4ed55d801
|
Refactor to move common libraries out of project
|
9 years ago |
Jae Kwon
|
1b9fd811a1
|
RPCResponse.Result && EventData are registered interfaces; -skip_upnp option
|
10 years ago |
Ethan Buchman
|
3f7f3dd37f
|
add git commit hash to nodeInfo
|
10 years ago |
Ethan Buchman
|
3416004359
|
names in gendoc, genesis_test
|
10 years ago |
Ethan Buchman
|
bf1c9a869c
|
use gendoc struct for genesis rpc response
|
10 years ago |
Ethan Buchman
|
2045aee9cd
|
pass chainID through sign interfaces
|
10 years ago |
Ethan Buchman
|
8a2d9525f0
|
network > chain_id, put in genesis.json
|
10 years ago |
Jae Kwon
|
75ef479547
|
Config is passed into each module. Remove tendermint/confer
|
10 years ago |
Jae Kwon
|
be90fd1e0d
|
rpc cleanup; tendermint init
|
10 years ago |
Jae Kwon
|
85c8850ac2
|
Config names have no dots, are under_scored.
|
10 years ago |
Jae Kwon
|
dc1fddd1d8
|
Added NodeInfo (still need to add to AddrBook); Proper Handshake
|
10 years ago |
Ethan Buchman
|
224ea00917
|
first draft of network crawler
|
10 years ago |
Jae Kwon
|
fa669ae436
|
added Moniker as config, available in RPC.
|
10 years ago |
Jae Kwon
|
e0d6fd6bfa
|
RPC shows Peer{Address,IsOutbound}
|
10 years ago |
Jae Kwon
|
cc18136af8
|
RPC refactor to separate core from core_client and the rest of RPC.
Other random changes.
|
10 years ago |
Jae Kwon
|
f271ab7256
|
various changes. removed debora temporarily
|
10 years ago |
Jae Kwon
|
13b6508ecd
|
Package import path change
|
10 years ago |
Ethan Buchman
|
60f166e823
|
tendermint2
|
10 years ago |
Ethan Buchman
|
731de7a6aa
|
rpc: return (*Response, error) for all functions
|
10 years ago |
Ethan Buchman
|
1fb1163721
|
rpc: separate out golang API into rpc/core
|
10 years ago |
Ethan Buchman
|
d2724c9731
|
rpc: give each call a dedicated Response struct, add basic test
|
10 years ago |
Matthew Wampler-Doty
|
f03547007a
|
App -> App()
|
10 years ago |
Ethan Buchman
|
7aa1d67c97
|
rpc: add status and net info
|
10 years ago |