Alexander Simmerl
bf370d36c2
Extract priv_validator into first class package
This is a maintenance change to move the private validator package out
of the types and to a top-level location. There is no good reason to
keep it under the types and it will more clearly coommunicate where
additions related to the privval belong. It leaves the interface and the
mock in types for now as it would introduce circular dependency between
privval and types, this should be resolved eventually.
* mv priv_validator to privval pkg
* use consistent `privval` as import
Follow-up to #1255
7 years ago
Ethan Buchman
c681347ee3
move genesis fields into RequestInitChain. some nullable=false
7 years ago
Ethan Buchman
512b3121a7
include genesis file structure
7 years ago
Ethan Buchman
90c3a469ff
Revert "Merge pull request #247 from tendermint/bucky/no-gogo"
This reverts commit ef79007433
, reversing
changes made to bcfdd6dbaf
.
7 years ago
Anton Kaliaev
6004587347
expect all tags to be strings ( #1498 )
* expect all tags to be strings
Refs #1369
* port changes from https://github.com/tendermint/tmlibs/pull/204
Refs #1369
7 years ago
Ethan Buchman
01f87fd8d3
remove gogoproto
7 years ago
Ethan Buchman
cfdec76020
update everything for Params and Result types
7 years ago
Ethan Buchman
5830c338ae
Application uses new ParamsXxx and ResultXxx Types
7 years ago
Ethan Buchman
07a9ddb2d5
result.go is json.go and codetype.go
7 years ago
Ethan Buchman
fac6bcd19e
consolidate util.go and pubkey.go to validator.go
7 years ago
Ethan Buchman
3d4f3bbbdd
varint -> uvarint for length prefix
7 years ago
Ethan Buchman
3dbdc87edb
protoc and update everything
7 years ago
Ethan Buchman
8bb04d7ef7
Validator and SignedValidator
7 years ago
Anton Kaliaev
bb9aa85d22
copy events and pubsub packages from tmlibs
Refs #847
7 years ago
Ethan Buchman
efbc2efb42
add proposer to header
7 years ago
Ethan Buchman
31576150ad
add total_voting_power to evidence
7 years ago
Ethan Buchman
459ee59e46
Request/ResponseValidator, update Header
7 years ago
Christopher Goes
e196dacf80
Add 'type' field to abci.Evidence
7 years ago
Christopher Goes
4c73ceee08
Add time field to abci.Evidence
7 years ago
Ethan Buchman
e5220360c5
AddPart always verifies
7 years ago
Ethan Buchman
9b20287463
add tags to begin/end block
7 years ago
Ethan Buchman
f7d775337b
absent_validators: repeated int -> repeated bytes
7 years ago
Ethan Buchman
162811476a
update some comments
7 years ago
Zarko Milosevic
2c125b6c78
Fix validValue rule
7 years ago
Ethan Buchman
e9804d76cf
fixes from review
7 years ago
Adrian Brink
f80b3aee48
Change AppStateBytes to GenesisBytes
The consensus should pass the entire genesis file to the application.
That way the application has access to the chain_id, the timestap, ...
7 years ago
Ethan Buchman
658060150c
rpc: add voting power totals to vote bitarrays
7 years ago
Adrian Brink
ef67705524
Allow ResponseInitChain to return the initial validator set
ResponseInitChain should be able to return an initial validator set that
is determined by some logic within the genesis.json file.
7 years ago
Ethan Buchman
c45ba2967a
fixes from review
7 years ago
Ethan Buchman
a2d77cbe4e
add MarshalJSON methods to fix dump_consensus_state
7 years ago
Ethan Buchman
94c016a04e
use MarshalJSONIndent for init files. closes #1506
7 years ago
Jae Kwon
b42d5a2211
blockID -> block_id for JSON
7 years ago
Thomas Corbière
6a48bd0c88
use the tag interface for pubsub. ( #1438 )
* use the tag interface for pubsub.
* update tmlibs.
* Fix unresolved conflict.
7 years ago
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
7 years ago
Ethan Buchman
bb1b249e8a
types: lock block on MakePartSet
7 years ago
Ethan Buchman
c68d406195
fix tests
7 years ago
Ethan Buchman
02c0835e9b
fixes post merge
7 years ago
Jae Kwon
02531ca5a3
Fix race testing (cont;) Bump version to 0.19.0
7 years ago
Jae Kwon
d24e4cb821
Fix race testing
7 years ago
Jae Kwon
32e1d195a0
Fix cmd and lite
7 years ago
Jae Kwon
3ca5292dc9
Fix rpc tests
7 years ago
Jae Kwon
e4492afbad
Merge
7 years ago
Jae Kwon
45ec5fd170
WIP consensus
7 years ago
Jae Kwon
5d1c758730
Fix evidence
7 years ago
Jae Kwon
1b9323f105
Fix blockchain tests
7 years ago
Anton Kaliaev
ed782e7508
include validator's voting power in /status
Refs #581
7 years ago
Anton Kaliaev
0732526465
use more relaxing < and >= ops instead of !=
an example of Search from godocs:
```
package main
import (
"fmt"
"sort"
)
func main() {
a := []int{1, 3, 6, 10, 15, 21, 28, 36, 45, 55}
x := 6
i := sort.Search(len(a), func(i int) bool { return a[i] >= x })
if i < len(a) && a[i] == x {
fmt.Printf("found %d at index %d in %v\n", x, i, a)
} else {
fmt.Printf("%d not found in %v\n", x, a)
}
}
```
7 years ago
Anton Kaliaev
39a4963782
document funcs in validator_set.go
7 years ago
Anton Kaliaev
37ce6b195a
ValidatorSet#GetByAddress: return -1 if no validator was found
7 years ago
Ethan Buchman
39ff4d22e9
minor cleanup
7 years ago