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

Rc/v0.8.0 #358

Merged
merged 124 commits into from
Apr 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
706e22d
refactor: ckb-network moved to new p2p library
jjyr Feb 25, 2019
5c96f5e
refactor: reorganize ckb-network modules
jjyr Feb 25, 2019
aada764
fix: p2p disconnect peer
jjyr Feb 25, 2019
269fd25
refactor: network::outbound_peer_service
jjyr Feb 26, 2019
140171e
refactor: use new ckb-network
jjyr Feb 26, 2019
3c95227
fix: network dial
jjyr Feb 27, 2019
8149033
refactor: upgrade p2p to 0.1 version
jjyr Feb 28, 2019
4475f47
refactor: apply clippy suggestions
jjyr Mar 1, 2019
dc3d577
refactor: upgrade secp256k1 to 0.12.0
jjyr Mar 1, 2019
8640249
refactor: integrate with p2p_ping
jjyr Mar 3, 2019
bd5bf69
fix: crypto tests
jjyr Mar 4, 2019
01b8ba1
fix: p2p rebase
jjyr Mar 11, 2019
c11c49c
feat: support select network protocol by version
jjyr Mar 12, 2019
9481ee1
fix: p2p rebase
jjyr Mar 12, 2019
c15cf6a
fix: impl protocol name for CKBProtocol
jjyr Mar 12, 2019
645c813
refactor: use HashMap store peer protocol version
jjyr Mar 12, 2019
febbcb9
fix: network clippy
jjyr Mar 12, 2019
464b333
fix: network protocol_id mismatch
jjyr Mar 14, 2019
549136a
fix: network integration tests
jjyr Mar 14, 2019
f2ba523
chore: rebase Cargo.lock
jjyr Mar 14, 2019
0d980de
Merge pull request #295 from jjyr/replace-p2p-library
jjyr Mar 14, 2019
9fa25d4
fix: use reference script in integration test
quake Mar 15, 2019
5393c68
feat: version verification
zhangsoledad Mar 15, 2019
76fc0ed
test: setup integration test in Travis
doitian Mar 15, 2019
eb1539d
feat: enforce `type` field of a cellbase output cell must be absent
zhangsoledad Mar 15, 2019
8be5b70
Merge #333
bors[bot] Mar 15, 2019
955463b
Merge #334
bors[bot] Mar 15, 2019
d716482
chore(deps): bump secp256k1 from 0.12.0 to 0.12.2
dependabot-support Mar 17, 2019
75c119b
chore(deps): bump toml from 0.4.10 to 0.5.0
dependabot-support Mar 17, 2019
0dd4f59
Merge #339
bors[bot] Mar 18, 2019
8c6f5dd
Merge #338
bors[bot] Mar 18, 2019
b382135
chore(deps): bump tokio from 0.1.16 to 0.1.17
dependabot-support Mar 18, 2019
5ba2f2a
Merge #337
bors[bot] Mar 18, 2019
097132b
perf: shrink lock-acquisition
zhangsoledad Mar 19, 2019
a1e3938
Merge #335
bors[bot] Mar 19, 2019
b473aa2
Merge #342
bors[bot] Mar 20, 2019
4d074e2
feat: verify tx cycles in relay protocol
jjyr Mar 19, 2019
72ebd2c
refactor: release chain lock in send tx RPC
jjyr Mar 19, 2019
3d2dc09
refactor: remove unnecessary lock acquisition
jjyr Mar 19, 2019
3aa100a
fix: integration test generate invalid tx
jjyr Mar 20, 2019
0f2dfd3
feat: Add random_peers function to PeerStore
jjyr Mar 20, 2019
789b7b7
fix: reduce lock scope
jjyr Mar 20, 2019
069d6c0
Merge #341
bors[bot] Mar 20, 2019
fdb8c71
fix: node not connected yet when invoke add_bootnode
jjyr Mar 20, 2019
a495296
fix: ban_peer with incorrect timeout
jjyr Mar 20, 2019
6cd2d8f
Merge #345
bors[bot] Mar 21, 2019
e68d90a
refactor: replace unwrap with expect
zhangsoledad Mar 20, 2019
b60c86b
chore: rename doc.md to README.md [skip ci]
u2 Mar 21, 2019
155a65d
Merge #348
bors[bot] Mar 21, 2019
99164a2
Merge #346
bors[bot] Mar 21, 2019
b5a4880
chore: Update tentacle version
TheWaWaR Mar 14, 2019
79e4277
feat: Add discovery service
TheWaWaR Mar 18, 2019
2b4a02b
refactor: Use Bytes instead of Vec<u8> as data type
TheWaWaR Mar 19, 2019
c367508
fix: Add target field for log
TheWaWaR Mar 19, 2019
1b607eb
fix: Handle channel errors
TheWaWaR Mar 19, 2019
d662898
fix: Use change p2p dependency from branch to reversion
TheWaWaR Mar 19, 2019
ffaf825
chore: Remove outdated FIXME mark
TheWaWaR Mar 19, 2019
4a27aaf
feat: Add identify protocol
TheWaWaR Mar 19, 2019
bc4260e
fix: Add observed address to peer store
TheWaWaR Mar 20, 2019
9492854
fix: Parse protocol version bug
TheWaWaR Mar 20, 2019
cbae925
test: Fix build test (network API change)
TheWaWaR Mar 20, 2019
15b69b0
fix: Outbound connection select address bug
TheWaWaR Mar 21, 2019
7650a8f
fix: Can not shutdown network bug
TheWaWaR Mar 21, 2019
3aa0bc8
fix: Fix dial address with peer_id
TheWaWaR Mar 21, 2019
1981533
fix: Fix parse supported versions
TheWaWaR Mar 21, 2019
5461d5e
chore: Remove unnecessary clone
TheWaWaR Mar 21, 2019
4a068b6
chore: Remove AddNewAddr event
TheWaWaR Mar 21, 2019
3999aee
revert: Revert out bounded service logic
TheWaWaR Mar 21, 2019
89dd69d
Merge #340
bors[bot] Mar 21, 2019
e88567c
refactor: move some code to CellSetDiff
quake Mar 19, 2019
87b56a7
chore: remove unused resolve_transaction in CellProvider trait
quake Mar 19, 2019
0839526
refactor: add OverlayCellProvider and refactor code
quake Mar 20, 2019
e3f531a
chore: tweak test code
quake Mar 21, 2019
2913cca
fix: resolve transactions verifier bug and add some test
quake Mar 22, 2019
cd85337
chore: remove some unused test case and fix clippy
quake Mar 22, 2019
948bb60
test: add delay verify test
quake Mar 22, 2019
c373520
chore: remove unused test case
quake Mar 22, 2019
6ee407f
chore: resolve review issue
quake Mar 22, 2019
6ccbf0a
refactor: rename connected_time to last_connected_at
jjyr Mar 21, 2019
5a78629
refactor: Remove unnecessary interface from PeerStore
jjyr Mar 21, 2019
cf2873f
refactor: move SqlitePeerStore to correct modules
jjyr Mar 21, 2019
b6a6cc8
feat: enable SqlitePeerStore file mode
jjyr Mar 21, 2019
4224951
refactor: use vector to dynamic allocation
jjyr Mar 22, 2019
581c0ec
rebase
quake Mar 22, 2019
5f7505a
fix: rebase
jjyr Mar 22, 2019
4ea613b
refactor: use memory mode to run SqlitePeerStore tests
jjyr Mar 22, 2019
4a85333
test: resolve backtrace assert issue
quake Mar 22, 2019
2ef7fe1
fix: sqlite peer store benchmark
jjyr Mar 22, 2019
f69bde8
refactor: speed up sqlite peer store tests
jjyr Mar 22, 2019
017d674
chore: update tentacle
jjyr Mar 22, 2019
d4b7a22
fix: integration tests config file
jjyr Mar 22, 2019
567e6d7
Merge #349
bors[bot] Mar 22, 2019
dd5f8b6
feat: use TryFrom convert protocol
zhangsoledad Mar 21, 2019
3b95876
chore: resolve review comment
quake Mar 22, 2019
0c8a506
Merge #350
bors[bot] Mar 22, 2019
ebe24da
chore(deps): bump tokio from 0.1.17 to 0.1.18
dependabot-support Mar 24, 2019
90cb6f4
chore(deps): bump bit-vec from 0.5.0 to 0.5.1
dependabot-support Mar 24, 2019
1854ad8
Merge #352 #353
bors[bot] Mar 25, 2019
7018ec2
refactor: resolve review comment issue
quake Mar 25, 2019
38d2ba7
Merge #343
bors[bot] Mar 25, 2019
0b1beaa
refactor: unify network peer scoring
jjyr Mar 25, 2019
9fbd183
chore: bump several deps
zhangsoledad Mar 25, 2019
37e7cb7
feature: index whether a tx is a cellbase in the chain, prepare for t…
u2 Mar 15, 2019
477b568
refactor: use DSL macro to define network behaviours
jjyr Mar 25, 2019
0500cb9
Merge #336
bors[bot] Mar 25, 2019
b8c5bf6
Merge branch 'master' into develop
doitian Mar 25, 2019
b5d78df
chore: bump to v0.8.0-pre
doitian Mar 25, 2019
f9abb11
refactor: change Behaviour to an enum
jjyr Mar 26, 2019
9441411
ci: bors longer timeout
zhangsoledad Mar 26, 2019
291b0ba
Merge #354
bors[bot] Mar 26, 2019
89104f5
refactor: merge cell_set chain_state cell_provider
zhangsoledad Mar 26, 2019
6e8e265
Merge #359
bors[bot] Mar 26, 2019
fdb3dfb
Merge #356
bors[bot] Mar 26, 2019
5bbb35f
refactor: network config
jjyr Mar 26, 2019
09d79fc
fix: network path dir
jjyr Mar 27, 2019
4a1ecc7
fix: network path
jjyr Mar 27, 2019
c0992b1
fix: trace rpc
zhangsoledad Mar 27, 2019
ac2f29d
Merge #361
bors[bot] Mar 27, 2019
d27bcbf
docs: rm docs/data-structures.md [skip ci]
doitian Mar 28, 2019
10762b4
Merge pull request #366 from doitian/rm-docs-data-structures
doitian Mar 28, 2019
eaaa2a3
ci: increase ulimit on travis OSX
zhangsoledad Mar 28, 2019
a35c33f
Merge #365
bors[bot] Mar 28, 2019
6c5ac8a
chore: CHANGELOG for v0.8.0
doitian Apr 8, 2019
0f1e112
chore: bump to v0.8.0
doitian Apr 8, 2019
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ addons:
- texinfo
- libtool

before_install: if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 8192; fi
install: ./devtools/ci/install.sh
script: ./devtools/ci/script.sh

Expand Down
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,78 @@ All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.


# [v0.8.0](https://github.com/nervosnetwork/ckb/compare/v0.7.0...v0.8.0) (2019-04-08)

### Features

* #336: index whether a tx is a cellbase in the chain r=quake a=u2

Index whether a tx is a cellbase in the chain, prepare for the cellbase outputs maturity checking.

Now saving the cellbase index and block number in the `TransactionMeta`, there is another implementation which creates a `HashMap<tx_hash, number>`. The second one may be a little memory saving, but this one is more simple. I think both are ok.

https://github.com/nervosnetwork/ckb/issues/54

* #350: use TryFrom convert protocol r=doitian a=zhangsoledad
* #340: Integrate discovery and identify protocol r=jjyr a=TheWaWaR

Known issues:

- Shutdown network not very graceful.

* #345: Add `random_peers` function to PeerStore r=jjyr a=jjyr
* #335: Enforce `type` field of a cellbase output cell must be absent r=doitian a=zhangsoledad
* #334: Version verification r=doitian a=zhangsoledad
* #295: Replace P2P library r=quake a=jjyr

### Bug Fixes

* #365: trace rpc r=zhangsoledad a=zhangsoledad

addition:
* remove integration tests from root workspace
* fix integration tests logger panic at flush

* #341: verify tx cycles in relay protocol r=zhangsoledad a=jjyr

### Improvements

* #359: merge `cell_set` `chain_state` cell provider r=quake a=zhangsoledad

* #343: use CellProvider r=zhangsoledad a=quake

This refactoring is intended to remove closure in ChainService and duplicate code in ChainState. And fix bugs in block processing and add some test cases.

* #346: replace unwrap with expect r=doitian a=zhangsoledad
* #342: shrink lock-acquisition r=quake a=zhangsoledad
* #361: refactor network config r=jjyr a=jjyr
* #356: Unify network peer scoring r=jjyr a=jjyr
* #349: Refactor peer store r=jjyr a=jjyr

### BREAKING CHANGES

* #361: network config

```diff
[network]
- reserved_nodes = []
-only_reserved_peers = false
-max_peers = 8
-min_peers = 4
-secret_file = "secret_key"
-peer_store_path = "peer_store.db"

+reserved_peers = []
+reserved_only = false
+max_peers = 125
+max_outbound_peers = 30
+config_dir_path = "default/network"
+ping_interval_secs = 15
+ping_timeout_secs = 20
+connect_outbound_interval_secs = 15
```


# [v0.7.0](https://github.com/nervosnetwork/ckb/compare/v0.6.0...v0.7.0) (2019-03-25)


Expand Down
Loading