Revision 85244a42ea306dafef90a73405202825076e7173 authored by Callum Waters on 28 January 2020, 16:16:16 UTC, committed by Anton Kaliaev on 28 January 2020, 16:16:16 UTC
* lite2: add Start method There are few reasons to do that: 1) separation of state and dynamics (some users will want to delay starting the light client; does not matter we should not allow them to create a light client object) 2) less important, but some users might not need autoUpdateRoutine and removeNoLongerTrustedHeadersRoutine routines * lite2: wait till routines are finished in Stop because they are started in Start, it feels more natural to wait for them to finish in Stop. * lite2: add TrustedValidatorSet func * refactor cleanup code * changed restore header and val function to handle negative height * reverted restoreTrustedHeaderAndNextVals() functionality Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
1 parent c5ecd80
File | Mode | Size |
---|---|---|
proto3 | ||
time | ||
block.go | -rw-r--r-- | 26.8 KB |
block_meta.go | -rw-r--r-- | 1.6 KB |
block_meta_test.go | -rw-r--r-- | 92 bytes |
block_test.go | -rw-r--r-- | 17.7 KB |
canonical.go | -rw-r--r-- | 2.4 KB |
codec.go | -rw-r--r-- | 528 bytes |
encoding_helper.go | -rw-r--r-- | 271 bytes |
errors.go | -rw-r--r-- | 1.0 KB |
event_bus.go | -rw-r--r-- | 8.7 KB |
event_bus_test.go | -rw-r--r-- | 10.8 KB |
events.go | -rw-r--r-- | 5.9 KB |
events_test.go | -rw-r--r-- | 379 bytes |
evidence.go | -rw-r--r-- | 10.4 KB |
evidence_test.go | -rw-r--r-- | 5.9 KB |
genesis.go | -rw-r--r-- | 3.9 KB |
genesis_test.go | -rw-r--r-- | 4.8 KB |
keys.go | -rw-r--r-- | 80 bytes |
params.go | -rw-r--r-- | 6.0 KB |
params_test.go | -rw-r--r-- | 3.5 KB |
part_set.go | -rw-r--r-- | 6.3 KB |
part_set_test.go | -rw-r--r-- | 3.9 KB |
priv_validator.go | -rw-r--r-- | 3.3 KB |
proposal.go | -rw-r--r-- | 2.7 KB |
proposal_test.go | -rw-r--r-- | 3.9 KB |
proto3_test.go | -rw-r--r-- | 2.8 KB |
protobuf.go | -rw-r--r-- | 6.4 KB |
protobuf_test.go | -rw-r--r-- | 5.2 KB |
results.go | -rw-r--r-- | 2.0 KB |
results_test.go | -rw-r--r-- | 1.5 KB |
signable.go | -rw-r--r-- | 713 bytes |
signed_msg_type.go | -rw-r--r-- | 440 bytes |
test_util.go | -rw-r--r-- | 1.8 KB |
tx.go | -rw-r--r-- | 4.2 KB |
tx_test.go | -rw-r--r-- | 4.9 KB |
utils.go | -rw-r--r-- | 762 bytes |
validation.go | -rw-r--r-- | 1.2 KB |
validator.go | -rw-r--r-- | 2.7 KB |
validator_set.go | -rw-r--r-- | 30.0 KB |
validator_set_test.go | -rw-r--r-- | 42.3 KB |
vote.go | -rw-r--r-- | 4.6 KB |
vote_set.go | -rw-r--r-- | 18.0 KB |
vote_set_test.go | -rw-r--r-- | 15.4 KB |
vote_test.go | -rw-r--r-- | 9.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...