Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
4949222
core: refactor reorganization function and data
meowsbits Sep 10, 2020
7c86e18
core: refactor writeBlockWithState reorg logic
meowsbits Sep 10, 2020
468b152
core: init ecbp11355 (MESS) implementation
meowsbits Sep 10, 2020
9ea9d7e
core,coregeth,ctypes,genesisT,goethereum,multigeth,parity: init ECBP1…
meowsbits Sep 10, 2020
2718253
core: implement new blockReorgMeter in reorg method
meowsbits Sep 10, 2020
9d82e60
core,eth: implement AF safety mechanisms at sync level
meowsbits Sep 10, 2020
df45f0a
params: set MESS activation numbers for classic and mordor
meowsbits Sep 10, 2020
379294e
core,eth: refactor af enable/disable for cleaner logs
meowsbits Sep 10, 2020
c050c21
core: break af logic to own file
meowsbits Sep 10, 2020
2d2c979
:nail_care:
meowsbits Sep 10, 2020
9101fe5
params: default MessNet chain config and genesis
meowsbits Sep 10, 2020
295c436
core: increase logging precision for MESS outcome
meowsbits Sep 10, 2020
ec27ad4
core: case-based tests for easy/hard MESS chain acceptance
meowsbits Sep 10, 2020
2fa5056
eth: actually install artificialFinalitySafetyLoop goroutine
meowsbits Sep 10, 2020
ae203d2
params: add comments on ETA for classic and mordor MESS activations
meowsbits Sep 10, 2020
88d5439
core: increase MESS log precision to 5
meowsbits Sep 10, 2020
84b87dd
core: add more test cases showing approaching limits
meowsbits Sep 10, 2020
0268698
core,params: (lint): goimports -w
meowsbits Sep 10, 2020
a34bf53
core: refactor reorg logic in writeBlockWithState
meowsbits Sep 11, 2020
905564e
core: refactor and document fn alternatives, select sinusoidal
meowsbits Sep 11, 2020
26047a5
core,go.mod,go.sum: include test that makes graphs, and remove same s…
meowsbits Sep 11, 2020
94e7fed
forkid: update forkid tests with classic,mordor ecbp11355 activations
meowsbits Sep 11, 2020
d8c7680
.golangci.yml: include AF unused functions in allowed deadcode
meowsbits Sep 11, 2020
f66da3f
core: lint, add sin fn test
meowsbits Sep 11, 2020
49e02ff
core: re-include redundant reorg condition
meowsbits Sep 11, 2020
9ff67d4
core: (lint): goimports -w
meowsbits Sep 11, 2020
ccef362
forkid,confp: forkid skips BestPractice (BP) transitions
meowsbits Sep 11, 2020
6433598
core: improve and add AF log context when enabled
meowsbits Sep 11, 2020
b0f0144
params: no MESS activation set on ETC mainnet
meowsbits Sep 12, 2020
e3c5da3
core: refactor and tinker with logic around equivalent short reorg ac…
meowsbits Sep 12, 2020
c8234bb
eth,web3ext: install admin_ecbp11355 method
meowsbits Sep 12, 2020
e0cf2a0
main,utils: install --ecbp11355 flag for chain config overrides
meowsbits Sep 12, 2020
4fbe2d9
main,utils,core,eth,web3ext,params,coregeth,ctypes,genesisT,goethereu…
meowsbits Sep 12, 2020
52a0da1
params: (lint): goimports -w
meowsbits Sep 12, 2020
0c46755
confp: refactor method cross-compatibility namespacing logic
meowsbits Sep 12, 2020
5bc3fc2
core: fix typos, prettify ecbp1100 logging
meowsbits Sep 13, 2020
6c41aa0
core: swap sin for polynomial (cubic) fn
meowsbits Sep 17, 2020
e465842
core: add ECBP1100 arbitration logic to writeKnownBlock
meowsbits Sep 20, 2020
f1c300e
core: adds test TestAFKnownBlock
meowsbits Sep 21, 2020
493ec1d
core: use polynomial big int, refactor AF cond installation locales
meowsbits Sep 23, 2020
056c0fc
core: fix merge-missed minerOwn condition in AF arbiter
meowsbits Sep 23, 2020
93381ae
core: fix AF logging to be less talky
meowsbits Sep 23, 2020
5ef64c2
core: lowbump logging of MESS-approval to >2 segments
meowsbits Sep 23, 2020
6c01dad
core: skip development and graphing tests
meowsbits Sep 23, 2020
a294c66
core: add more illustrative tests for diffic/length scaling
meowsbits Sep 23, 2020
131ddf5
params: install classic ECBP1100 activation 11377500
meowsbits Sep 23, 2020
60b2831
core: uncomment int64 version of polynomialv fn
meowsbits Sep 23, 2020
1e7f628
core: (lint) goimports -w, unnecessary conversions
meowsbits Sep 23, 2020
ce11ef9
core: refactor minerOwn logic to be simpler
meowsbits Sep 23, 2020
98b9def
core,core/reorgs-MESS.png: use current time instead of proposed time …
meowsbits Sep 23, 2020
908be72
core: remove minerOwn logic from MESS arbitration
meowsbits Sep 23, 2020
0cb3d68
core/reorgs-MESS.png: remove graph file accidentally committed
meowsbits Sep 23, 2020
33f1812
params: fix etc mainnet MESS activation number
meowsbits Sep 24, 2020
427bf3b
core: only calc prettyRation when needed
meowsbits Sep 24, 2020
c15eecb
eth: bump stale-check safety interval to 30*13s
meowsbits Sep 24, 2020
15d4bf9
eth: bump MESS minpeers safety to 5 (defaultMinSyncPeers)
meowsbits Sep 24, 2020
5b63eb5
eth,goethereum: add test for protocolman AF features enable/disable
meowsbits Sep 25, 2020
36bb18e
core: remove vestigal int64 polynomial fn, rm emath import
meowsbits Sep 25, 2020
ab57ebb
core: tidy up test file
meowsbits Sep 25, 2020
4aceb86
core: update comment to use current instead of proposed
meowsbits Sep 25, 2020
b8bcdb8
eth: (lint) fix unecesssary use of Sprintf (gosimple)
meowsbits Sep 25, 2020
41ee136
goethereum: (lint) fix struct tag on nonexported field (govet)
meowsbits Sep 25, 2020
2f81f32
core: fix log value for proposed reorg span
meowsbits Sep 25, 2020
fbe85f3
params: update MESS block numbers for etc mainnet, mordor testnet
meowsbits Sep 25, 2020
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
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ issues:
- path: cmd/faucet/
linters:
- deadcode
- path: core/blockchain_af.go
linters:
- deadcode
1 change: 1 addition & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ var (
utils.LegacyGpoPercentileFlag,
utils.EWASMInterpreterFlag,
utils.EVMInterpreterFlag,
utils.ECBP1100Flag,
configFileFlag,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/geth/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var AppHelpFlagGroups = []flags.FlagGroup{
utils.IdentityFlag,
utils.LightKDFFlag,
utils.WhitelistFlag,
utils.ECBP1100Flag,
},
},
{
Expand Down
11 changes: 11 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,10 @@ var (
Usage: "External EVM configuration (default = built-in interpreter)",
Value: "",
}
ECBP1100Flag = cli.Uint64Flag{
Name: "ecbp1100",
Usage: "Configure ECBP-1100 (MESS) block activation number",
}
)

// MakeDataDir retrieves the currently requested data directory, terminating
Expand Down Expand Up @@ -1664,6 +1668,13 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
if gen := genesisForCtxChainConfig(ctx); gen != nil {
cfg.Genesis = gen
}
// Handle temporary chain configuration override cases.
if ctx.GlobalIsSet(ECBP1100Flag.Name) {
n := ctx.GlobalUint64(ECBP1100Flag.Name)
if err := cfg.Genesis.Config.SetECBP1100Transition(&n); err != nil {
Fatalf("Failed to set ECBP-1100 activation number: %v", err)
}
}

// Establish NetworkID.
// If dev-mode is used, then NetworkID will be overridden.
Expand Down
Loading