Anton Kaliaev
|
baf457e6d4
|
return error if peer sent us a block we didn't expect with a height too far ahead/behind
|
2018-03-15 11:58:19 +04:00 |
|
Anton Kaliaev
|
0c7e871ef0
|
[blockchain] replace timeoutsCh with more abstract errorsCh
|
2018-03-15 11:58:19 +04:00 |
|
Anton Kaliaev
|
87ce804b4a
|
cmn.PanicSanity is deprecated
|
2018-03-15 11:58:19 +04:00 |
|
Anton Kaliaev
|
2a24ae90c1
|
fixes from Jae's review
1. remove pointer
2. add Quit() method to Service interface
|
2018-02-12 14:32:09 +04:00 |
|
Anton Kaliaev
|
0c1b91b762
|
revert back curRate != 0
|
2018-02-09 13:02:44 +04:00 |
|
Anton Kaliaev
|
c8990d06d9
|
remove curRate != 0
|
2018-02-09 12:01:13 +04:00 |
|
Anton Kaliaev
|
b0a55882b2
|
lower the minRecvRate
See https://github.com/tendermint/tendermint/issues/1177#issuecomment-363720118
|
2018-02-09 12:01:12 +04:00 |
|
Anton Kaliaev
|
d1fa44e816
|
improve "curRate too low" message
Refs #1177
Note on labels:
KB - 1024
kB - 1000
https://ux.stackexchange.com/questions/13815/files-size-units-kib-vs-kb-vs-kb
|
2018-02-09 12:01:12 +04:00 |
|
Ethan Buchman
|
ee674f919f
|
StopPeerForError in blockchain and consensus
|
2018-01-21 13:32:04 -05:00 |
|
Adrian Brink
|
a30315276b
|
Formatting and documentation
|
2018-01-21 12:32:23 -05:00 |
|
Ethan Buchman
|
a17105fd46
|
p2p: peer.Key -> peer.ID
|
2018-01-01 22:39:05 -05:00 |
|
Anton Kaliaev
|
922af7c405
|
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
|
2017-12-01 19:04:53 -06:00 |
|
Anton Kaliaev
|
b3492356e6
|
uint64 height (Refs #911)
|
2017-12-01 17:17:22 -05:00 |
|
Anton Kaliaev
|
69b5da766c
|
service#Start, service#Stop signatures were changed
See https://github.com/tendermint/tmlibs/issues/45
|
2017-11-29 10:38:58 -06:00 |
|
Zach Ramsay
|
2563b4fc92
|
lint fixes
|
2017-11-27 22:39:12 +00:00 |
|
Zach Ramsay
|
563faa98de
|
address comments, pr #643
|
2017-11-27 22:39:11 +00:00 |
|
Zach Ramsay
|
8f0237610e
|
linting errors: clean it all up
|
2017-11-27 22:39:11 +00:00 |
|
Zach Ramsay
|
331857c9e6
|
linting: apply errcheck part2
|
2017-11-27 22:39:11 +00:00 |
|
Ethan Buchman
|
591dd9e662
|
dont catchupReplay on wal if we fast synced
|
2017-10-27 10:46:19 -04:00 |
|
Ethan Buchman
|
0bbf38141a
|
blockchain/pool: some comments and small changes
|
2017-10-23 10:13:46 -04:00 |
|
Anton Kaliaev
|
d64a48e0ee
|
set logger on blockchain pool
|
2017-10-20 23:56:21 +04:00 |
|
Anton Kaliaev
|
0a7b2ab52c
|
fix invalid memory address or nil pointer dereference error (Refs #762)
https://github.com/tendermint/tendermint/issues/762#issuecomment-338276055
```
E[10-19|04:52:38.969] Stopping peer for error module=p2p peer="Peer{MConn{178.62.46.14:46656} B14916FAF38A out}" err="Error: runtime error: invalid memory address or nil pointer dereference\nStack: goroutine 529485 [running]:\nruntime/debug.Stack(0xc4355cfb38, 0xb463e0, 0x11b1c30)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0xa7\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p.(*MConnection)._recover(0xc439a28870)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p/connection.go:206 +0x6e\npanic(0xb463e0, 0x11b1c30)\n\t/usr/local/go/src/runtime/panic.go:491 +0x283\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain.(*bpPeer).decrPending(0x0, 0x381)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain/pool.go:376 +0x22\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain.(*BlockPool).AddBlock(0xc4200e4000, 0xc4266d1f00, 0x40, 0xc432ac9640, 0x381)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain/pool.go:215 +0x139\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain.(*BlockchainReactor).Receive(0xc42050a780, 0xc420257740, 0x1171be0, 0xc42ff302d0, 0xc4384b2000, 0x381, 0x1000)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/blockchain/reactor.go:160 +0x712\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p.createMConnection.func1(0x11e5040, 0xc4384b2000, 0x381, 0x1000)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p/peer.go:334 +0xbd\ngithub.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p.(*MConnection).recvRoutine(0xc439a28870)\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p/connection.go:475 +0x4a3\ncreated by github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p.(*MConnection).OnStart\n\t/home/ubuntu/go/src/github.com/cosmos/gaia/vendor/github.com/tendermint/tendermint/p2p/connection.go:170 +0x187\n"
```
|
2017-10-20 21:56:10 +04:00 |
|
Zach Ramsay
|
d56b44f3a5
|
all: no more anonymous imports
|
2017-10-04 16:40:45 -04:00 |
|
Ethan Buchman
|
29bfcb0a31
|
minor comments/changes
|
2017-09-21 14:51:29 -04:00 |
|
Ethan Buchman
|
0d1fa8e884
|
fixes from review
|
2017-06-28 11:12:45 -04:00 |
|
Ethan Buchman
|
77a3d03385
|
blockchain: explain isCaughtUp logic
|
2017-06-23 22:34:38 -04:00 |
|
Ethan Buchman
|
3c0128a680
|
undo some megacheck suggestions
|
2017-06-23 21:36:47 -04:00 |
|
zramsay
|
cf31f8d06f
|
core: apply megacheck vet tool (unused, gosimple, staticcheck)
|
2017-05-29 23:11:40 -04:00 |
|
Anton Kaliaev
|
c9cd8de9c6
|
set logger
|
2017-05-13 10:25:00 +02:00 |
|
Anton Kaliaev
|
f803544195
|
new logging
|
2017-05-13 10:24:58 +02:00 |
|
Ethan Buchman
|
d1926bcad1
|
use tmlibs
|
2017-04-21 18:12:54 -04:00 |
|
Ethan Buchman
|
00847cdc6b
|
blockpool: fix removePeer bug
|
2017-04-15 02:22:03 -04:00 |
|
Ethan Buchman
|
4fd1471f11
|
remove BaseService.OnStart
|
2017-03-28 12:09:11 -04:00 |
|
Anton Kalyaev
|
eef9124d1b
|
fix typo
|
2017-03-04 23:21:57 -05:00 |
|
Jae Kwon
|
bf1bceec87
|
Use go-flowcontrol
|
2016-11-04 06:46:34 -07:00 |
|
Jae Kwon
|
480f44f16c
|
QuitService->BaseService
|
2016-10-28 12:14:24 -07:00 |
|
Jae Kwon
|
b25cfb0e0b
|
Unify blockpool mtxs
|
2016-06-28 18:02:27 -07:00 |
|
Ethan Buchman
|
ca674304c5
|
fix blockpool races. closes #188
|
2016-06-24 20:38:59 -04:00 |
|
Jae Kwon
|
f17c4c1d57
|
s/Validation/Commit/g
|
2016-04-02 09:10:16 -07:00 |
|
Ethan Buchman
|
c9ec9cf00e
|
config: block size, consensus timeouts, recheck tx
|
2016-02-29 17:04:33 -05:00 |
|
Ethan Buchman
|
50ac66f79b
|
fast sync fixes
|
2016-02-07 16:56:59 -08:00 |
|
Jae Kwon
|
9357e8ecf8
|
IsCaughtUp requires a peer
|
2016-01-02 16:21:40 -08:00 |
|
Jae Kwon
|
5a8a9bfd69
|
Make fast_sync=true by default, with more relaxed conditions
|
2015-12-31 00:32:54 -08:00 |
|
Jae Kwon
|
c4ed55d801
|
Refactor to move common libraries out of project
|
2015-10-22 17:39:06 -07:00 |
|
Jae Kwon
|
cb3a1fd095
|
Fixed a blockchain pool goroutine-leak bug
|
2015-10-12 16:49:46 -07:00 |
|
Jae Kwon
|
fd9f816050
|
refactor variable names, pool.requests -> pool.requesters
|
2015-10-12 16:39:05 -07:00 |
|
Jae Kwon
|
47eee5ddd5
|
blockchain pool race condition fix
|
2015-09-12 08:47:59 -07:00 |
|
Jae Kwon
|
b468baf7ac
|
IsCaughtUp works with new networks
|
2015-09-11 21:09:47 -07:00 |
|
Jae Kwon
|
1c17ea3b14
|
blockchain parameter && log tweaks
|
2015-09-11 21:09:27 -07:00 |
|
Jae Kwon
|
21d45023d3
|
various bug fixes
|
2015-09-11 21:09:01 -07:00 |
|