aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/verification.go
Commit message (Collapse)AuthorAgeFilesLines
* Rename validator* to node* (#120)Mission Liao2018-09-201-11/+11
|
* simulation: integrate test.Transport (#99)Mission Liao2018-09-111-1/+1
| | | | | - Add marshaller for simulation by encoding/json - Implement peer server based on test.TranportServer - Remove network models, they are replaced with test.LatencyModel
* core: BA-based consensus core. (#93)Jimmy Hu2018-09-041-1/+1
|
* core: tune performance (#73)Mission Liao2018-08-281-1/+32
| | | | | | | | | | | | | | | | | | | | | | - Avoid using recursive function in critical path. - Do not write through when using levelDB. Things put to levelDB would be safe from panic even we didn't force to write through every time. - Dump count of confirmed blocks proposed by self. - Avoid allocating variables in loop. - Return length of acking node set, we only need that when total ordering. - Fix potential bug: make sure win records updated when acking height vectors of candidates are changed. - Keep dirty validators in slice. - Add cache for objects to ease the pressure to garbage collector. - Cache global acking status when total ordering. - Add method to recycle blocks. - Marshal JSON should be called once for each broadcast. - Make updateWinRecord called in parallel. - Log average / deviation of latencies when simulation finished.
* simulation: Show internal and external timestamp latency. (#30)Jimmy Hu2018-08-071-6/+57
|
* Print block confirm latency when Peer Server stopped. (#23)Jimmy Hu2018-07-311-7/+30
|
* Print confirmed blocks per second when Peer Server stopped. (#22)Jimmy Hu2018-07-311-0/+45
|
* Add a config that PeerServer can shutdown after receiving enough of block. (#19)Jimmy Hu2018-07-301-3/+3
|
* Verify the Total Ordering Algorithm in peerServer in tcp mode (#11)Jimmy Hu2018-07-261-0/+111
Verify the Total Ordering Algorithm in peerServer in tcp mode.