Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

das light client (mvp) #323

Merged
merged 91 commits into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
9b18942
First stab on mvp light client adr
liamsi May 3, 2021
8aabbfa
Add more details about IPFS & testing
liamsi May 4, 2021
283cfc8
Add thoughts about DAHeader via RPC
liamsi May 4, 2021
8ab6c09
minor cleanup
liamsi May 4, 2021
64fdfaf
more details on required changes:
liamsi May 4, 2021
c10756f
Update LightBlock comment
liamsi May 4, 2021
96f9903
properly introduce DAHeader abbreviation and add a negative plus some…
liamsi May 4, 2021
58b1506
Add Store requirements & note on skipping verification UX
liamsi May 5, 2021
d119ffe
stashing all diffs
liamsi May 5, 2021
2ff1e83
Fix search&replace glitch
liamsi May 8, 2021
3fb46db
Augment provider by DASLightBlock method
liamsi May 8, 2021
fd0b3a8
Inefficient 1st WIP version
liamsi May 8, 2021
d68c1b9
add comment
liamsi May 9, 2021
ede0eb3
quick and dirty move IPFS init and create code for debugging
liamsi May 11, 2021
51e3b78
actually add route to rpc
liamsi May 11, 2021
2cef90d
fix panic on sample number and check if dah and data hash match
liamsi May 11, 2021
11afe34
Add random messages on preprocess step for larger blocks when testing
liamsi May 11, 2021
fc1b60a
quick & dirty: add badger transform
liamsi May 11, 2021
deb46f5
and it works :tada:
liamsi May 11, 2021
0a82190
actually apply the transforms :facepalm:
liamsi May 12, 2021
5caf4a9
also generate some Txs
liamsi May 12, 2021
c16a75f
add debug output (connected peers) and fix home address
liamsi May 13, 2021
0e7254d
comment out Txs generation
liamsi May 13, 2021
c7d0667
wrap err
liamsi May 13, 2021
f505adc
move transform out
liamsi May 13, 2021
3fe6136
more descriptive error
liamsi May 13, 2021
0614946
just for debugging purposes
liamsi May 13, 2021
a505fff
default to server
liamsi May 13, 2021
e9e6428
add debug output for dht module
liamsi May 13, 2021
5f93f3d
remove exessive debug output again
liamsi May 13, 2021
d05fc7f
clean up default config
liamsi May 13, 2021
e89141a
make small blocks
liamsi May 13, 2021
067b47c
use larger blocks again
liamsi May 13, 2021
954c2e4
smaller again
liamsi May 13, 2021
e9ba803
even smaller
liamsi May 13, 2021
edad1af
try with nmt branch & large blocks
liamsi May 13, 2021
b404b5d
power of two
liamsi May 13, 2021
686525c
s/DAS sampling/Data Availability sampling
liamsi May 13, 2021
d7daaa7
OK, try with 10 mins timeout
liamsi May 13, 2021
2ba7802
add some debug output
liamsi May 13, 2021
db33ad0
panic if PutBlock fails, also increase to 15 sec
liamsi May 13, 2021
8b7fa44
reduce timeout to one minute again and actually ensure power of two a…
liamsi May 13, 2021
e7ef813
more debug output and trace in GetLeafData
liamsi May 13, 2021
4c9b753
PutBlock on finalizeCommit instead
liamsi May 14, 2021
115d70a
PutBlock independent of store height
liamsi May 14, 2021
763a6be
PutBlock or panic
liamsi May 14, 2021
d4e52d2
hack: wait for ipfs node
liamsi May 14, 2021
437b8bf
loads of debug output, will clean up in the following days
liamsi May 16, 2021
0b4a881
remove some debug output to make it easier to follow
liamsi May 19, 2021
0415330
Merge remote-tracking branch 'origin/master' into ismail/light-mvp
liamsi May 21, 2021
955ea8b
light: move IPFS init out of client lib
liamsi May 21, 2021
f14eceb
light-cmd: minor cleanup
liamsi May 21, 2021
1cc4894
light-cmd: treat daSampling case first
liamsi May 21, 2021
c0cfe01
light: remove ipfs init as it moved to cmd
liamsi May 21, 2021
a1c33c5
types: remove powerOf2 helper (resloved in #331)
liamsi May 21, 2021
1330d8e
light: numSamples to uint32
liamsi May 21, 2021
7b06bba
Update docs/lazy-adr/adr-004-mvp-light-client.md
liamsi May 21, 2021
01abf4e
light: numSamples upper bound
liamsi May 21, 2021
500e062
Merge remote-tracking branch 'origin/master' into ismail/light-mvp
liamsi May 22, 2021
b3b5fea
run go mod tidy
liamsi May 22, 2021
d0ed747
revert changes in KVStore
liamsi May 22, 2021
34146b6
revert delete PreprocessTxs in KVStore
liamsi May 22, 2021
ab280a3
fmt
liamsi May 22, 2021
886f620
remove some debug output
liamsi May 22, 2021
9555a4d
remove obsolete nil check
liamsi May 22, 2021
5c94750
further clean up: remove obsolete private helper
liamsi May 22, 2021
380e4d9
remove obsolete debug output
liamsi May 22, 2021
53145c9
use closer for graceful shutdown
liamsi May 22, 2021
68e377b
linter
liamsi May 22, 2021
8ba205b
remove more debug output
liamsi May 22, 2021
880749e
remove caching eds as it is better done in a separate pr
liamsi May 22, 2021
fa0193a
fix broken test
liamsi May 22, 2021
dbea20c
proper err handling and closing in test
liamsi May 22, 2021
70151b7
fix another test
liamsi May 22, 2021
75209b4
fix remaining tests
liamsi May 22, 2021
3ae3356
linter again
liamsi May 22, 2021
4f64b99
timeouts again :-/
liamsi May 22, 2021
a295da4
use one mock only
liamsi May 22, 2021
5b0b2a4
cleanup obsolete comment
liamsi May 23, 2021
79457ae
move methods from wal_generator.go to wal_test.go
liamsi May 23, 2021
b215136
increase test timeouts due to mock ipfs objects
liamsi May 23, 2021
c867b78
give the consensus reactor more time
liamsi May 23, 2021
abd3076
extend timeouts even further
liamsi May 23, 2021
f3c59b4
review feedback
liamsi May 23, 2021
675d058
linter: fix unnecessary conversion
liamsi May 23, 2021
91f8a7c
shutdown might take longer now
liamsi May 23, 2021
c97011c
use b.DataAvailabilityHeader.hash == nil instead
liamsi May 23, 2021
d9f27e4
Update consensus/state.go
liamsi May 24, 2021
edca6ad
don't panic
liamsi May 24, 2021
5a91089
remove unreachable panic
liamsi May 24, 2021
fe55882
TestStateLockPOLSafety1 times out on CI: increase threshold
liamsi May 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/e2e/runner/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func waitForNode(node *e2e.Node, height int64, timeout time.Duration) (*rpctypes
return status, nil
}

time.Sleep(200 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
}
}

Expand Down
8 changes: 7 additions & 1 deletion test/e2e/runner/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ func Wait(testnet *e2e.Testnet, blocks int64) error {
// WaitUntil waits until a given height has been reached.
func WaitUntil(testnet *e2e.Testnet, height int64) error {
logger.Info(fmt.Sprintf("Waiting for all nodes to reach height %v...", height))
_, err := waitForAllNodes(testnet, height, 20*time.Second)
_, err := waitForAllNodes(testnet, height, waitingTime(len(testnet.Nodes)))
if err != nil {
return err
}
return nil
}

// waitingTime estimates how long it should take for a node to reach the height.
// More nodes in a network implies we may expect a slower network and may have to wait longer.
func waitingTime(nodes int) time.Duration {
return time.Duration(30+(nodes*4)) * time.Second
}
Comment on lines +30 to +34
Copy link
Member Author

@liamsi liamsi May 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slightly modified version of: tendermint/tendermint#6202