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

Bsc #1

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
292b48e
modify faucet available for binance smart chain
unclezoro May 20, 2020
2ac4ae8
add consensus engine Parlia implement
unclezoro May 20, 2020
5d5337c
add async write rotate log handler
unclezoro May 20, 2020
1a2da60
add precompile light client contracts
unclezoro May 20, 2020
3a88be5
prepare for release 1.0.0-alpha.0 for Rialto network #1
unclezoro May 20, 2020
60b12ac
add key features to the readme
unclezoro May 21, 2020
39c80ce
more strick condition for system transaction
unclezoro May 10, 2020
4909842
add gov init transaction
unclezoro May 13, 2020
b72be12
update 'running a node' part of readme (#2)
unclezoro May 25, 2020
fd8c9c0
Merge pull request #1 from binance-chain/gov
unclezoro Jun 1, 2020
ed9b28f
fix validator failed to sync a block produced by itself
unclezoro Jun 1, 2020
e83397e
Merge pull request #4 from binance-chain/issue3
unclezoro Jun 15, 2020
2ff7a21
update stale depth
unclezoro Jun 15, 2020
ce14f2c
Merge pull request #6 from guagualvcha/stale_depth
unclezoro Jun 17, 2020
4bd4469
add gas limit check in parlia implement
unclezoro Jun 17, 2020
9f1aaec
Merge pull request #10 from guagualvcha/gas_limit
yutianwu Jun 18, 2020
6a19c98
remove redundant gaslimit check
unclezoro Jun 24, 2020
11bc803
Merge pull request #11 from guagualvcha/gas_limit
unclezoro Jun 24, 2020
5e4f578
fix debug_traceTransaction crashed issue (#13)
unclezoro Jun 30, 2020
511bbf5
add bep2p tokens for faucet (#5)
unclezoro Jun 30, 2020
ef1e874
add cross chain contract to system contract
unclezoro Jun 30, 2020
6f40b0e
Merge pull request #14 from binance-chain/crossContract
Jun 30, 2020
6f46fc0
allow slash failed (#15)
unclezoro Jun 30, 2020
2f2778d
update metaversion to beta.0
unclezoro Jul 3, 2020
1940dc8
add changelog for v1.0.0-beta.0
unclezoro Jul 3, 2020
8d48b0d
Merge pull request #17 from binance-chain/develop
yutianwu Jul 3, 2020
f4816ee
add chain id into sign bytes to avoid replay attack (#18)
unclezoro Jul 9, 2020
04287eb
reestimate the gas consumption for system tx when there is 41 validat…
unclezoro Jul 28, 2020
5cc893a
prepare for 1.0.0-beta.1 (#20)
unclezoro Jul 28, 2020
8124e60
resolve best practice advice
Aug 4, 2020
83d72b8
Merge pull request #22 from binance-chain/resolve-best-pratices
yutianwu Aug 5, 2020
a8c9e53
enforce backoff time for out-turn validator (#23)
unclezoro Aug 7, 2020
3f36e99
framework for upgrade system contract
Jun 30, 2020
3789ea3
improve upgrade config
Jul 3, 2020
4450b33
refactor upgrade config
Aug 6, 2020
13cca06
add beforeUpgrade and afterUpgrade
Aug 6, 2020
02154bb
add multiple upgrade config
Aug 6, 2020
650d066
resolve comment
Aug 6, 2020
baae91d
add upgrade height for rialto
unclezoro Aug 7, 2020
c4f4377
fix deplay check
unclezoro Aug 9, 2020
85ebea9
fix hex code of new smart contract
unclezoro Aug 9, 2020
4f431e0
fix index out of range
unclezoro Aug 10, 2020
8c1d1db
Merge pull request #25 from binance-chain/fixdelayLogic
unclezoro Aug 10, 2020
c399c88
fix not return error when blockTimeVerifyForRamanujanFork failed
unclezoro Aug 11, 2020
45f17d5
update chapel ramanujan fork
unclezoro Aug 11, 2020
4a8f639
Merge pull request #26 from binance-chain/chapelupgrade
unclezoro Aug 11, 2020
8c8c2a7
Merge pull request #16 from binance-chain/system-contract-upgrade
unclezoro Aug 11, 2020
f2e4ef2
prepare for release 1.0.1-beta
unclezoro Aug 11, 2020
d9a0607
Merge pull request #24 from binance-chain/develop
unclezoro Aug 11, 2020
011f043
add niels fork
unclezoro Aug 13, 2020
b652ef3
Merge pull request #27 from binance-chain/1.0.1.beta.2
unclezoro Aug 13, 2020
f94b7de
eth/tracers: revert reason in call_tracer + error for failed internal…
libotony Aug 27, 2020
844ed90
remove disclaim
unclezoro Aug 27, 2020
ba0152f
Merge pull request #29 from binance-chain/improve-tracer
unclezoro Aug 27, 2020
b242e89
Merge pull request #30 from binance-chain/rmdisclaim
Aug 27, 2020
397f6f6
prepare for release 1.0.2
unclezoro Aug 28, 2020
bfb73f8
Merge pull request #32 from binance-chain/releasev1.0.2
unclezoro Aug 28, 2020
e81c728
R4R: add max gas allwance calculation (#36)
Sep 11, 2020
40620b4
prepare release 1.0.3
unclezoro Sep 24, 2020
537c5db
Merge pull request #41 from binance-chain/branch_1.0.3
unclezoro Sep 24, 2020
7bd1c1f
Disable noisy log from consensus engine
Sep 15, 2020
cb1afd2
Hide some smart contract tracing logs from parlia consensus engine
Sep 20, 2020
935c9e3
upgrade to golang1.15.5
unclezoro Nov 13, 2020
d52d8a5
use fixed gas price since bsc network is idle
unclezoro Sep 6, 2020
1a50838
Merge pull request #35 from binance-chain/fixedGas
unclezoro Nov 17, 2020
cca7667
Merge pull request #47 from binance-chain/golang1.15.5
unclezoro Nov 17, 2020
58a91af
Merge pull request #38 from hyunsikswap/remove-log
unclezoro Nov 17, 2020
b0fcc0a
Create PULL_REQUEST_TEMPLATE
unclezoro Nov 17, 2020
c2feaba
Merge pull request #49 from binance-chain/pr_template
unclezoro Nov 17, 2020
3da36e6
add change log for release v1.0.4
unclezoro Nov 23, 2020
ed10dfa
Merge pull request #50 from binance-chain/p1.0.4
unclezoro Nov 23, 2020
69fe8db
add curl in docker image
unclezoro Dec 14, 2020
e0205f5
les: fix GetProofsV2 bug (#21896)
zsfelfoldi Nov 24, 2020
f6ec491
Merge pull request #55 from binance-chain/curl_image
unclezoro Dec 18, 2020
3d3f969
fix potential deadlock of pub/sub module
unclezoro Dec 30, 2020
894b1e3
Merge pull request #54 from binance-chain/fixLess
unclezoro Jan 8, 2021
5bd7332
add rpc method request gauge
unclezoro Jan 10, 2021
3f3f8d0
Merge pull request #59 from binance-chain/issue_58
unclezoro Jan 11, 2021
0e797c5
add x-forward-for message in log
unclezoro Jan 10, 2021
2a79ac1
consensus/ethash: use 64bit indexes for the DAG generation (#21793)
slavikus Nov 11, 2020
0a64615
signer/storage: fix a badly ordered error check (#21379)
6543 Jul 28, 2020
ad3ff64
core: fix txpool off-by-one error (#21683)
holiman Oct 9, 2020
d1f95d5
internal/ethapi: fix nil deref + fix estimateGas console bindings (#2…
MariusVanDerWijden Sep 23, 2020
4608da6
rpc: fix issue with null JSON-RPC messages (#21497)
fjl Aug 28, 2020
670009d
accounts/abi: fix a bug in getTypeSize method (#21501)
tofudfy Sep 1, 2020
ca1d1cb
p2p/enode: avoid crashing for invalid IP (#21981)
fjl Dec 9, 2020
9e8ee51
p2p/discover: fix deadlock in discv5 message dispatch (#21858)
nisdas Nov 25, 2020
cfeab77
Merge pull request #61 from binance-chain/requestGauge
unclezoro Jan 11, 2021
5a1c39d
Merge pull request #60 from binance-chain/x-forward-for
unclezoro Jan 11, 2021
60606d3
support fork id in header; elegant upgrade
unclezoro Dec 4, 2020
24dc208
avoid false warn log
unclezoro Jan 11, 2021
9fedf19
Merge pull request #53 from binance-chain/elegant_upgrade
unclezoro Jan 11, 2021
b605f1f
Merge pull request #63 from binance-chain/secure_patch
unclezoro Jan 11, 2021
e09e48a
R4R: apply mirror sync upgrade (#56)
Jan 19, 2021
0a1e79e
prepare for release v1.0.5 (#64)
unclezoro Jan 19, 2021
540ac2a
[R4R]appay mirror/sync fork to main-net; release for 1.0.6 (#68)
unclezoro Feb 5, 2021
e55e9cd
change the fork waring to debug to avoid confusion (#73)
unclezoro Feb 9, 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
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Changelog
## v1.0.6
* [\#68](https://github.com/binance-chain/bsc/pull/68) apply mirror sync upgrade on mainnet

## v1.0.5

SECURITY
* [\#63](https://github.com/binance-chain/bsc/pull/63) security patches from go-ethereum
* [\#54](https://github.com/binance-chain/bsc/pull/54) les: fix GetProofsV2 that could potentially cause a panic.

FEATURES
* [\#56](https://github.com/binance-chain/bsc/pull/56) apply mirror sync upgrade
* [\#53](https://github.com/binance-chain/bsc/pull/53) support fork id in header; elegant upgrade

IMPROVEMENT
* [\#61](https://github.com/binance-chain/bsc/pull/61)Add `x-forward-for` log message when handle message failed
* [\#60](https://github.com/binance-chain/bsc/pull/61) add rpc method request gauge

BUGFIX
* [\#59](https://github.com/binance-chain/bsc/pull/59) fix potential deadlock of pub/sub module



## v1.0.4

IMPROVEMENT
* [\#35](https://github.com/binance-chain/bsc/pull/35) use fixed gas price when network is idle
* [\#38](https://github.com/binance-chain/bsc/pull/38) disable noisy log from consensus engine
* [\#47](https://github.com/binance-chain/bsc/pull/47) upgrade to golang1.15.5
* [\#49](https://github.com/binance-chain/bsc/pull/49) Create pull request template for all developer to follow


## v1.0.3

IMPROVEMENT
* [\#36](https://github.com/binance-chain/bsc/pull/36) add max gas allwance calculation

## v1.0.2

IMPROVEMENT
* [\#29](https://github.com/binance-chain/bsc/pull/29) eth/tracers: revert reason in call_tracer + error for failed internal…

## v1.0.1-beta

IMPROVEMENT
* [\#22](https://github.com/binance-chain/bsc/pull/22) resolve best practice advice

FEATURES
* [\#23](https://github.com/binance-chain/bsc/pull/23) enforce backoff time for out-turn validator

BUGFIX
* [\#25](https://github.com/binance-chain/bsc/pull/25) minor fix for ramanujan upgrade

UPGRADE
* [\#26](https://github.com/binance-chain/bsc/pull/26) update chapel network config for ramanujan fork

## v1.0.0-beta.0

FEATURES
* [\#5](https://github.com/binance-chain/bsc/pull/5) enable bep2e tokens for faucet
* [\#14](https://github.com/binance-chain/bsc/pull/14) add cross chain contract to system contract
* [\#15](https://github.com/binance-chain/bsc/pull/15) Allow liveness slash fail

IMPROVEMENT
* [\#11](https://github.com/binance-chain/bsc/pull/11) remove redundant gaslimit check

BUGFIX
* [\#4](https://github.com/binance-chain/bsc/pull/4) fix validator failed to sync a block produced by itself
* [\#6](https://github.com/binance-chain/bsc/pull/6) modify params for Parlia consensus with 21 validators
* [\#10](https://github.com/binance-chain/bsc/pull/10) add gas limit check in parlia implement
* [\#13](https://github.com/binance-chain/bsc/pull/13) fix debug_traceTransaction crashed issue
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Build Geth in a stock Go builder container
FROM golang:1.14-alpine as builder
FROM golang:1.15-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git
RUN apk add --no-cache make gcc musl-dev linux-headers git bash

# Temporarily pull a custom Go bundle
ADD https://golang.org/dl/go1.15.5.src.tar.gz /tmp/go.tar.gz
RUN (cd /tmp && tar -xf go.tar.gz)
RUN (cd /tmp/go/src && ./make.bash)
ENV PATH="/tmp/go/bin:${PATH}"

ADD . /go-ethereum
RUN cd /go-ethereum && make geth

# Pull Geth into a second stage deploy alpine container
FROM alpine:latest

RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates curl
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/

EXPOSE 8545 8546 8547 30303 30303/udp
ENTRYPOINT ["geth"]
ENTRYPOINT ["geth"]
31 changes: 31 additions & 0 deletions PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### Description

add a description of your changes here...

### Rationale

tell us why we need these changes...

### Example

add an example CLI or API response...

### Changes

Notable changes:
* add each change in a bullet point here
* ...

### Preflight checks

- [ ] build passed (`make build`)
- [ ] tests passed (`make test`)
- [ ] manual transaction test passed

### Already reviewed by

...

### Related issues

... reference related issue #'s here ...
343 changes: 74 additions & 269 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func isDynamicType(t Type) bool {
func getTypeSize(t Type) int {
if t.T == ArrayTy && !isDynamicType(*t.Elem) {
// Recursively calculate type size if it is a nested array
if t.Elem.T == ArrayTy {
if t.Elem.T == ArrayTy || t.Elem.T == TupleTy {
return t.Size * getTypeSize(*t.Elem)
}
return t.Size * 32
Expand Down
1 change: 1 addition & 0 deletions accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const (
MimetypeDataWithValidator = "data/validator"
MimetypeTypedData = "data/typed"
MimetypeClique = "application/x-clique-header"
MimetypeParlia = "application/x-parlia-header"
MimetypeTextPlain = "text/plain"
)

Expand Down
6 changes: 3 additions & 3 deletions accounts/external/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func (api *ExternalSigner) SignData(account accounts.Account, mimeType string, d
hexutil.Encode(data)); err != nil {
return nil, err
}
// If V is on 27/28-form, convert to to 0/1 for Clique
if mimeType == accounts.MimetypeClique && (res[64] == 27 || res[64] == 28) {
res[64] -= 27 // Transform V from 27/28 to 0/1 for Clique use
// If V is on 27/28-form, convert to to 0/1 for Clique and Parlia
if (mimeType == accounts.MimetypeClique || mimeType == accounts.MimetypeParlia) && (res[64] == 27 || res[64] == 28) {
res[64] -= 27 // Transform V from 27/28 to 0/1 for Clique and Parlia use
}
return res, nil
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/clef/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ with minimal requirements.
On the `client` qube, we need to create a listener which will receive the request from the Dapp, and proxy it.


[qubes-client.py](qubes/client/qubes-client.py):
[qubes-client.py](qubes/qubes-client.py):

```python

Expand Down
Loading