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.1.0 pre11 #9

Closed
wants to merge 58 commits into from
Closed

Rc/v0.1.0 pre11 #9

wants to merge 58 commits into from

Conversation

doitian
Copy link
Member

@doitian doitian commented Nov 20, 2018

v0.1.0-pre11 (2018-11-20)

Bug Fixes

  • chain index (8a28fd8)
  • relay_compact_block_with_one_tx random failure (131d7e1)
  • remove redundant debug lines (024177d)
  • Revert block builder (#2) (a42b2fa)
  • temporarily give up timeout (6fcc0ff)

Features

  • add a new VM syscall to allow printing debug infos from contract (765ea25)
  • Add new type script to CellOutput (820d62a)
  • add uncles_count to Header (324488c)
  • adjust get_cells_by_redeem_script_hash rpc with more data (488f2af)
  • build info version (d248885)
  • command default print help (#13) (1bbb3d0)
  • default port (fea6688)
  • Introduce a maximum size for locators (143960d)
  • relay block to peers after compact block reconstruction (380386d)
  • unify config format with json (d279f34)
  • network: Reduce unnessacery identify_protocol query (40bb41d)
  • network: use snappy to compress data in ckb protocol (52441df)
  • network: use yamux to do multiplex (83824d5)
  • relay msg to peers and network tweak (b957d2b)
  • vm syscall adjustments (99be228)

jjyr and others added 30 commits November 19, 2018 22:24
Rename from NervosFoundation to nervosnetwork.
Type script will be executed via ckb-vm when a Cell is created. If
type script fails, the transaction containing the Cell will also fail.
* Remove script data from mmap_tx syscall
* Add new syscall to return script type hash for any lock/contract scripts
The code of conduct is also included in `CONTRIBUTING.md`.
This could be very handy when debugging a contract
* fix chain index
* clean network log
* use yamux
* fix: spawn timer
* update README to include development process guide
* add security policy
* add telegram dev chat
* add link to security policy in CONTRIBUTING
Recover files which are missed due to manual rebase.
zhangsoledad and others added 26 commits November 20, 2018 10:54
Fixed unmatched uncles count error

```
Verification(Uncles(MissMatchCount { expected: 2, actual: 1 }))
```
…nnec_panic

fix: temporarily give up timeout
- Metion Conventional Commits in CONTRIBUTING.md, which is used to generate
change logs in future.
- Build initial CHANGELOG.md from previous release notes.
- Prefer HTTPS
- Fix instructions
- Provide more instructions
…oblems

fix: remove external lock reference of network::peer_registry and  fix kad discovery
* fix: prevent multi times dialing kad connection to the same peer

* fix: remove unused line

* fix: update network log
BREAKING CHANGE:

Command line arguments and some config options and chan spec options have been
changed. It may break scripts and integration tests that depends on the
command line interface.

- Command line argument `--config|-c` is now a top option, which should be
  specified before sub-command.
- Remove command line arguments `--data-dir` and `--chain`. They should be
  configured via the config file.
- Add a new config option `data_dir`, which configures the path of data
  directory.
- Option `ckb.chain` now only accepts a path.
- Option `system_cells` in chain spec now only accepts paths.

The path `data_dir` and `ckb.chain` can be an absolute path, or relative to
the directory containing the config file.

The paths of `system_cells` in chain spec can be absolute, or relative to the
directory containing the chain spec file.

If `--config|-c` is omitted, the app tries `ckb.json`, `nodes/default.json` in
order.

It is recommended to use `nodes/default.json` for development, which can be
created by copying `nodes/default.example.json`. The default config saves data
in `nodes/default/`, and loads chains spec `nodes/spec/dev.json`.

Following locations are obsoleted data directories, which can be removed on
development machines:

- Linux
  - `$XDG_DATA_HOME/ckb`
  - `$XDG_DATA_HOME/NervosDev`
  - `$HOME/.local/share/ckb`
  - `$HOME/.local/share/NervosDev`
- macOS
  - `$HOME/Library/Application Support/ckb`
  - `$HOME/Library/Application Support/NervosDev`
@doitian doitian closed this Nov 26, 2018
@doitian doitian deleted the rc/v0.1.0-pre11 branch November 26, 2018 06:28
bors bot added a commit that referenced this pull request Sep 1, 2020
2244: refactor: re-export crossbeam-channel r=doitian,yangby-cryptape a=zhangsoledad

## Description

re-export crossbeam-channel from facade wrapper, unify version specify.
use tilde requirements specify for crossbeam-channel, prevent automate dependency updates.

crossbeam-channel 0.4.3 has UB, may lead to jemalloc deadlock.

```
    frame #0: 0x00007fb34acd5620 libpthread.so.0`__lll_lock_wait + 48
    frame #1: 0x00007fb34accddf3 libpthread.so.0`__pthread_mutex_lock + 227
    frame #2: 0x000056423ada57fc ckb`_rjem_je_malloc_mutex_lock_slow at mutex.h:141:2
    frame #3: 0x000056423ada57f4 ckb`_rjem_je_malloc_mutex_lock_slow at mutex.c:84
    frame #4: 0x000056423ad6e1a8 ckb`_rjem_je_arena_tcache_fill_small at mutex.h:205:4
    frame #5: 0x000056423ad6e1a0 ckb`_rjem_je_arena_tcache_fill_small at arena.c:1261
    frame #6: 0x000056423adc1494 ckb`_rjem_je_tcache_alloc_small_hard at tcache.c:93:2
    frame #7: 0x000056423ad68618 ckb`mallocx at tcache_inlines.h:60:9
    frame #8: 0x000056423ad685e0 ckb`mallocx at jemalloc.c:1709
    frame #9: 0x000056423ad685e0 ckb`mallocx at jemalloc.c:1905
    frame #10: 0x000056423ad685e0 ckb`mallocx at jemalloc.c:2005
    frame #11: 0x000056423ad68324 ckb`mallocx at jemalloc.c:2588
    frame #12: 0x000056423b16a56c ckb`alloc::raw_vec::RawVec$LT$T$C$A$GT$::reserve::h10a313223974a7d1 + 188
    frame #13: 0x000056423b1a25f9 ckb`crossbeam_channel::flavors::array::Channel$LT$T$GT$::with_capacity::had6f123b9bc217e1 + 121
```
crossbeam-rs/crossbeam#533
#2235

also crossbeam-channel is not optimize for oneshot case. replace it if it is convenient.


Co-authored-by: zhangsoledad <787953403@qq.com>
XuJiandong pushed a commit to XuJiandong/ckb that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants