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

[ᚬmaster] Rc/v0.15.0 #1090

Closed
wants to merge 254 commits into from
Closed

[ᚬmaster] Rc/v0.15.0 #1090

wants to merge 254 commits into from

Conversation

doitian
Copy link
Member

@doitian doitian commented Jun 21, 2019

Target Release: v0.15.0 (rylai v4)
Release Date: Jun 29, 2019

The code hash of default secp256k1 changed in this version, which is

0x94334bdda40b69bae067d84937aa6bbccf8acd0df6626d4b9ac70d4612a11933

Change log for secp256k1

Features

Bug Fixes

Improvements

Misc

  • feat: proposer reward #922: Feat: proposer reward (@zhangsoledad)

    This is a breaking change: b:consensus

    Break Changes

    consensus

    1. earliest transaction proposer get 40% of the transaction fee as a reward.
    2. block reward finalized after proposal window close.
    3. enforce one-input one-output one-witness on cellbase.

    database

    1. block_ext.txs_verified -> block_ext.verified
    2. txs_fees persistence

    Enhancement

    1. lazy static always success script for test
    2. introduce AsCapacity make Capacity interface more flexible
  • Replace system cell #1054: Replace system cell (@driftluo)

    This is a breaking change: b:consensus

    1. Replace system cell to another repo
    2. cherry pick [HOLD] feat: default lock script use recoverable signing #1012 to this pr

    BREAKING CHANGE: It changes the default secp256k1 script, which now uses recoverable signature.

doitian and others added 30 commits June 4, 2019 00:38
refactor: remove low S check from util-crypto
feat: add CI files for Windows environments
chore: group sentry events via fingerprint
…block

feat: add a function to select all tx-hashes from storage for a block
chore: create windows package via azure
u2 and others added 20 commits June 20, 2019 21:29
fix: resolve `ChainSpec` script deserialize issue
chore: blank blake2b hash
* test: 1. fix discovery miss impl on add_new_addr 2. fix discovery quick exit on add_new_addrs 3. add

* test: support windows test
@doitian doitian requested a review from a team June 21, 2019 12:55
@nervos-bot nervos-bot bot changed the title Rc/v0.15.0 [ᚬmaster] Rc/v0.15.0 Jun 21, 2019
@nervos-bot nervos-bot bot added the breaking change The feature breaks consensus, database, message schema or RPC interface. label Jun 21, 2019
@nervos-bot
Copy link

nervos-bot bot commented Jun 21, 2019

@driftluo is assigned as the chief reviewer

@doitian
Copy link
Member Author

doitian commented Jun 21, 2019

Config files changes:

ckb-miner.toml

chain.spec

 [chain]
-spec = "specs/testnet.toml"
+spec = { file = "specs/testnet.toml" }

ckb.toml

chain.spec

 [chain]
-spec = "specs/testnet.toml"
+spec = { file = "specs/testnet.toml" }

New options network.upnp and network.discovery_local_address

 [network]
+# If set to true, try to register upnp
+upnp = false
+# If set to true, network service will add discovered local address to peer store, it's helpful for private net development
+discovery_local_address = false

New option block_assembler.data

+# Also, ckb allows the miners to add any data to the cellbase that they have dug out.
+# The data must be A 0x-prefixed hex string.
+#
+# note: The data field is optional.
+#
+# **WARNING**: if data is larger than the capacity value of the current cellbase,
+# it will be truncated
+#
+# [block_assembler]
+# code_hash = "0xf1951123466e4479842387a66fabfd6b65fc87fd84ae8e6cd3053edb27fff2fd"
+# args = [ "ckb cli blake160 <compressed-pubkey>" ]
+# data = "0x prefix hex string"

@doitian
Copy link
Member Author

doitian commented Jun 21, 2019

RPC changes:

  • Add new RPC module Indexer.
  • Response schema of get_current_epoch, get_epoch_by_number has changed.
     "result": {
-        "block_reward": "100000000000",
         "difficulty": "0x3e8",
-        "last_block_hash_in_previous_epoch": "0x0000000000000000000000000000000000000000000000000000000000000000",
+        "epoch_reward": "125000000000000",
         "length": "1250",
         "number": "0",
-        "remainder_reward": "0",
         "start_number": "0"
     }
  • Response schema of get_blockchain_info has changed
     "result": {
+        "alerts": [],
         "chain": "main",
         "difficulty": "0x3e8",
         "epoch": "0",
         "is_initial_block_download": true,
-        "median_time": "1557311762",
-        "warnings": ""
+        "median_time": "1557311762"
     }

@doitian
Copy link
Member Author

doitian commented Jun 21, 2019

Wrong head branch

@doitian doitian closed this Jun 21, 2019
@doitian doitian deleted the rc/v0.15.x branch June 22, 2019 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The feature breaks consensus, database, message schema or RPC interface.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet