Dev Ojha
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
6 years ago
Ethan Buchman
e1062a657f
fixes for ProposerAddress
- state.MakeBlock takes a proposerAddr
- validateBlock only checks that the ProposerAddress is in the validator
set
- fix raceyness from bad proposer test:
- use privValidator to get the proposer address (instead of racy
state)
- note we had to remove the test that checked the correct proposer was
included for higher rounds because we don't have a good way to test
this with multiple consensus states and not using the
privValidator.Address while calling createProposalBlock was a hack!
6 years ago
VenkatDatta
188e459273
Removed unnecessary onStart call ( #2098 )
* Removed unnecessary onStart & onStop calls in reactor
* Refactor OnStart & OnStop in reactor
* Removed redundant OnStart func in reactor
7 years ago
Jae Kwon
d542d2c394
Fix 0.22.7, bump to 0.22.8
7 years ago
Ethan Buchman
0e127562bf
register evidence interface wherever its used
7 years ago
Ethan Buchman
6046b99197
consensus: include evidence in proposed block parts. fixes #2050
7 years ago
ValarDragon
99e582d79a
crypto: Refactor to move files out of the top level directory
Currently the top level directory contains basically all of the code
for the crypto package. This PR moves the crypto code into submodules
in a similar manner to what `golang/x/crypto` does. This improves code
organization.
Ref discussion: https://github.com/tendermint/tendermint/pull/1966
Closes #1956
7 years ago
Anton Kaliaev
b31ee798bd
preserve original address and dial it instead of self-reported address ( #1994 )
Refs #1720
7 years ago
Dev Ojha
dae7dc30e0
Switch usage of math/rand to cmn's rand ( #1980 )
This commit switches all usage of math/rand to cmn's rand. The only
exceptions are within the random file itself, the tools package, and the
crypto package. In tools you don't want it to lock between the go-routines.
The crypto package doesn't use it so the crypto package have no other
dependencies within tendermint/tendermint for easier portability.
Crypto/rand usage is unadjusted.
Closes #1343
7 years ago
Anton Kaliaev
270659f03f
make Block Header and Data non-pointers
make BlockMeta Header a non-pointer
Refs #693
7 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
7 years ago
Zach Ramsay
d02c5d1e30
detele everything
7 years ago
Anton Kaliaev
9120fd5d14
unexport DecodeMessage functions
Refs #646
7 years ago
Ethan Buchman
d55243f0e6
fix import paths
7 years ago
Ethan Buchman
9ff99114b1
update for tmlibs v0.9.0
7 years ago
Jae Kwon
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
7 years ago
Jae Kwon
8128627f08
Optimizing blockchain reactor.
Should be paired with https://github.com/tendermint/iavl/pull/65 .
7 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
7 years ago
Liamsi
96a3502126
delete everything
7 years ago
Anton Kaliaev
84812145cb
friendly apis for constructors
7 years ago
Anton Kaliaev
19699d644f
p2p metric, make height and totalTxs gauges
7 years ago
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
7 years ago
Jae Kwon
fd6021876b
Potential fix for blockchain pool halting issue
7 years ago
Jae Kwon
f55725ebfa
Potential fix for blockchain pool halting issue
7 years ago
Alexander Simmerl
7b02b5b66b
Add RemoteIP to test implementation
7 years ago
Ethan Buchman
547e8223b9
fix
7 years ago
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
7 years ago
Ethan Buchman
c68d406195
fix tests
7 years ago
Jae Kwon
fb64314d1c
Review from Anton
7 years ago
Jae Kwon
e4492afbad
Merge
7 years ago
Jae Kwon
1b9323f105
Fix blockchain tests
7 years ago
Jae Kwon
196f8410ba
WIP commit; Fix types/results_test
7 years ago
Anton Kaliaev
701df09971
do not use keywords
Refs #1317
7 years ago
Anton Kaliaev
bcf54b0aa3
PanicSanity is deprecated
7 years ago
Anton Kaliaev
4242352852
stop peer on decoding error
7 years ago
Anton Kaliaev
f299689573
return back defaultChannelCapacity
7 years ago
Anton Kaliaev
baf457e6d4
return error if peer sent us a block we didn't expect with a height too far ahead/behind
7 years ago
Anton Kaliaev
0c7e871ef0
[blockchain] replace timeoutsCh with more abstract errorsCh
7 years ago
Anton Kaliaev
87ce804b4a
cmn.PanicSanity is deprecated
7 years ago
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
1. remove pointer
2. add Quit() method to Service interface
7 years ago
Anton Kaliaev
0c1b91b762
revert back curRate != 0
7 years ago
Anton Kaliaev
c8990d06d9
remove curRate != 0
7 years ago
Anton Kaliaev
b0a55882b2
lower the minRecvRate
See https://github.com/tendermint/tendermint/issues/1177#issuecomment-363720118
7 years ago
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
7 years ago
Anton Kaliaev
11b68f1934
rewrite broadcastTxRoutine to use channels
https://play.golang.org/p/gN21yO9IRs3
```
func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement {
el := make(chan *clist.CElement, 1)
select {
case el <- f():
```
will just run f() blockingly, so this doesn't change much in terms of behavior.
7 years ago
Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
NOTE we only updating for tmlibs and abci
7 years ago
Ethan Buchman
4051391039
blockchain: test wip for hard to test functionality [ci skip]
7 years ago
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
7 years ago
Adrian Brink
0eb85161aa
More specification
7 years ago
Adrian Brink
940145b368
Bullet points for reactor and poolRoutine
7 years ago