cmd/swarm/swarm-snapshot: swarm snapshot generator (#18453)
* cmd/swarm/swarm-snapshot: add binary to create network snapshots * cmd/swarm/swarm-snapshot: refactor and extend tests * p2p/simulations: remove unused triggerChecks func and fix linter * internal/cmdtest: raise the timeout for killing TestCmd * cmd/swarm/swarm-snapshot: add more comments and other minor adjustments * cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot * cmd/swarm/swarm-snapshot: change comment wording * p2p/simulations: revert Simulation.Run from master https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904 * cmd/swarm/swarm-snapshot: address pr comments * swarm/network/simulations/discovery: removed snapshot write to file * cmd/swarm/swarm-snapshot, swarm/network/simulations: removed redundant connection event check, fixed lint error
Showing
- cmd/swarm/swarm-snapshot/create.go 157 additions, 0 deletionscmd/swarm/swarm-snapshot/create.go
- cmd/swarm/swarm-snapshot/create_test.go 138 additions, 0 deletionscmd/swarm/swarm-snapshot/create_test.go
- cmd/swarm/swarm-snapshot/main.go 82 additions, 0 deletionscmd/swarm/swarm-snapshot/main.go
- cmd/swarm/swarm-snapshot/run_test.go 49 additions, 0 deletionscmd/swarm/swarm-snapshot/run_test.go
- swarm/network/kademlia.go 2 additions, 0 deletionsswarm/network/kademlia.go
- swarm/network/simulations/discovery/discovery_test.go 9 additions, 76 deletionsswarm/network/simulations/discovery/discovery_test.go
Loading
Please register or sign in to comment