Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Pluggable consensus (develop cache) #647

Closed
wants to merge 86 commits into from

Commits on Jun 5, 2018

  1. Init pluggable consensus

    r8d8 committed Jun 5, 2018
    Configuration menu
    Copy the full SHA
    724896b View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2018

  1. Configuration menu
    Copy the full SHA
    0597556 View commit details
    Browse the repository at this point in the history
  2. Format source code

    r8d8 committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    6f2ba1f View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2018

  1. Edit blockchain hadling

    r8d8 committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    db022e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. Configuration menu
    Copy the full SHA
    4eefffa View commit details
    Browse the repository at this point in the history
  2. Cleanup chain config

    r8d8 committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    5d6ab7c View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2018

  1. Configuration menu
    Copy the full SHA
    caefcc1 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2018

  1. Configuration menu
    Copy the full SHA
    6970aca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a4e590 View commit details
    Browse the repository at this point in the history
  3. problem: Blockchain doesn't implement vm ChainContext

    solution: add unused Engine() method
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    4014df9 View commit details
    Browse the repository at this point in the history
  4. problem: vm want Message<->Tx struct+interfaces

    solution: implement them
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    bcf8e45 View commit details
    Browse the repository at this point in the history
  5. problem: state processor doesn't use consensus engine

    solution: remove references
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    36cd55b View commit details
    Browse the repository at this point in the history
  6. problem: statedb.Prepare method doesn't exist

    solution: use original StartRecord method
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    ead13f2 View commit details
    Browse the repository at this point in the history
  7. problem: missing import

    solution: import core/types
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    eac3a29 View commit details
    Browse the repository at this point in the history
  8. problem: vm doesn't have vm.Logs

    solution: shopt -s globstar && sed -i 's/vm\.Logs/\[\]\*types\.Log/g' ./**/*.go
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    d37ff85 View commit details
    Browse the repository at this point in the history
  9. problem: vm doesn't have type Log

    solution: sed vm.Log -> *types.Log
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    72a25d6 View commit details
    Browse the repository at this point in the history
  10. problem: vm doesn't have type Account

    solution: sed vm.Account -> vm.AccountRef
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    89aa723 View commit details
    Browse the repository at this point in the history
  11. problem: AccountRefRef typo

    solution: sed
    whilei committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    227941f View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2018

  1. problem: StateDB must implement vm StateDB interface

    solution: modify and add methods to fit
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    d862efd View commit details
    Browse the repository at this point in the history
  2. problem: types Log got a little manged in receipt

    solution: fix'er up
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    12125c5 View commit details
    Browse the repository at this point in the history
  3. problem: unimplemented feature/tx-status changes

    solution: merge tzdybal's upstream/feature/tx-status changes,
    resolving some conflicts and creating some conflicts
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    56b82fc View commit details
    Browse the repository at this point in the history
  4. problem: merge duplicated code

    solution: remove duplicate methods
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    36e74f0 View commit details
    Browse the repository at this point in the history
  5. problem: receipt status logic moved to receipt.go

    solution: just move logic to NewReceipt fn
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    6392009 View commit details
    Browse the repository at this point in the history
  6. problem: StateTransition errors missing

    solution: add them
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    be3cfd8 View commit details
    Browse the repository at this point in the history
  7. problem: core/*.go not updated to using params package

    solution: sed
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    788b455 View commit details
    Browse the repository at this point in the history
  8. problem: core/*.go still references local Default configs

    solution: sed -> params.
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    74528fc View commit details
    Browse the repository at this point in the history
  9. problem: minor missing imports and old signatures

    solution: update
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    f6a7dce View commit details
    Browse the repository at this point in the history
  10. problem: unused imports, typos, and general compilation errors

    solution: remove unused imports and invalid methods, fix calls to types.Log
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    6423a6b View commit details
    Browse the repository at this point in the history
  11. problem: prefixedHex not exported for GenesisDump cmd

    solution: export it
    
    * IMO This is really fuckin ugly. TODO, unexport, refactor
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    48a5ffa View commit details
    Browse the repository at this point in the history
  12. problem: mismatched signatures and unreferenced vars

    solution: fix
    
    - use vm.Config in blockchain#StateProcessor signature
    - change returned gas value to uint64 type for ^ method
    - reference params.TxGas
    - ...
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    58b574e View commit details
    Browse the repository at this point in the history
  13. problem: state object not created, causing blockchain test to panic

    solution: ensure dirties are checked in statedb
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    e4db13f View commit details
    Browse the repository at this point in the history
  14. problem: rename state#StartRecord -> Prepare

    - also, whitespace and just fn ordering
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    d730689 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    63ab963 View commit details
    Browse the repository at this point in the history
  16. problem: vm.Config is wrong arg type for Process

    should be consensus.Engine
    
    solution: remove entirely
    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    e2eada7 View commit details
    Browse the repository at this point in the history
  17. Update blockchain handler

    r8d8 committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    ada2142 View commit details
    Browse the repository at this point in the history
  18. 🔨

    whilei committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    9245d62 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2018

  1. problem: statedb tests fail - wrong refund values

    solution: use uint64 instead of big.Int
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    495d196 View commit details
    Browse the repository at this point in the history
  2. problem: statedb_test snapshot tests failing

    solution: move to uint64 refund and gas values across the board
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    8c962dc View commit details
    Browse the repository at this point in the history
  3. problem: block GasUsed is 0 in tests

    solution: pass address of block header GasUsed
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    42e6e75 View commit details
    Browse the repository at this point in the history
  4. problem: decoding Receipt RLP fails (too many inputs)

    solution: revert merged changes from 'status' field PR
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    e812ca0 View commit details
    Browse the repository at this point in the history
  5. problem: nil pointer TestChainConfig for core/ tests

    solution: set value during defaults
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    d8ee5bc View commit details
    Browse the repository at this point in the history
  6. problem: ethdb.NewMemDatabase returns multiple vals in single val con…

    …text
    
    solution: fix, minor refactor
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    ae2e9e1 View commit details
    Browse the repository at this point in the history
  7. problem: block tests fails because mismatched gas types

    solution: use uint64 instead of *big.Int
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    0cd5365 View commit details
    Browse the repository at this point in the history
  8. problem: vm/instructions_test.go fails on shift tests with 'ff'

    solution:
    
    common/big Big256 isn't 256. It's 255. WTF.
    
    https://play.golang.org/p/S7UZiIgkKWM
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    f296220 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e69b1e7 View commit details
    Browse the repository at this point in the history
  10. dep ensure

    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    91cb7f9 View commit details
    Browse the repository at this point in the history
  11. problem: abi/simulated used antiquated signatures and types

    solution: update
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    abbf26c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    56bfd77 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e6b742b View commit details
    Browse the repository at this point in the history
  14. problem: fetcher_tests failing

    solution: fix to use uint64 and params
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    84e93cc View commit details
    Browse the repository at this point in the history
  15. problem: downloader_tests using old settings

    solution: fix
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    13cbc32 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    38b7a9d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3d7d73b View commit details
    Browse the repository at this point in the history
  18. problem: tests failing

    solution: fix 'em
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    c38b051 View commit details
    Browse the repository at this point in the history
  19. problem: cmd/geth tests failing

    solution: fix uint64 vs. bigInts and params imports
    whilei committed Jun 23, 2018
    Configuration menu
    Copy the full SHA
    d3a519b View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2018

  1. problem: sputnik processor typos

    solution: fix
    whilei committed Jun 24, 2018
    Configuration menu
    Copy the full SHA
    4288313 View commit details
    Browse the repository at this point in the history
  2. problem: cmd/evm broken

    solution: use new EVM patterns
    
    - not sure this will work
    whilei committed Jun 24, 2018
    Configuration menu
    Copy the full SHA
    1aa8715 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2018

  1. Configuration menu
    Copy the full SHA
    851f7ed View commit details
    Browse the repository at this point in the history
  2. Add engine creation

    r8d8 committed Jun 25, 2018
    Configuration menu
    Copy the full SHA
    7e86058 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2018

  1. Adjust interface for validator

    r8d8 committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    e513b74 View commit details
    Browse the repository at this point in the history
  2. problem: bad import in crypto/bn256

    solution: fix + dep ensure
    whilei committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    534e693 View commit details
    Browse the repository at this point in the history
  3. fix: tests/vm_tests

    whilei committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    27fa3ce View commit details
    Browse the repository at this point in the history
  4. fixprogress: passing 26/54 state_tests

    what a fucking pain in the ass
    whilei committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    bf8bed6 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2018

  1. Configuration menu
    Copy the full SHA
    3dffc77 View commit details
    Browse the repository at this point in the history
  2. init import from ETH

    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    d34c5ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c34448 View commit details
    Browse the repository at this point in the history
  4. problem: genesis types incompatible

    solution: create adhoc core.Genesis type to fit tests
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    12ef0a0 View commit details
    Browse the repository at this point in the history
  5. problem: typos in imports

    solution: fix
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    9339005 View commit details
    Browse the repository at this point in the history
  6. problem: state tests runner incompatible with tests/ pub fns

    solution: comment, temporarily
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    0216d6b View commit details
    Browse the repository at this point in the history
  7. problem: genesis and state tests unmarshaling

    solution: use generated marshalers
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    cbd9c25 View commit details
    Browse the repository at this point in the history
  8. problem: bytes IsHex test wrong

    solution: fix
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    06de3f2 View commit details
    Browse the repository at this point in the history
  9. problem: state test post root always fails

    solution: comment line; TBD
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    e1a6f1d View commit details
    Browse the repository at this point in the history
  10. problem: core/multivm_processor using old signatures

    solution: update gas type, log and receipt signatures
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    4e0a5eb View commit details
    Browse the repository at this point in the history
  11. problem: makefile command use old config path

    solution: move from core/config -> params/config
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    b6d8602 View commit details
    Browse the repository at this point in the history
  12. problem: typos in multivm_processor

    solution: fix 'em. happen cuz of a sed gone awry
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    b05abae View commit details
    Browse the repository at this point in the history
  13. problem: assignment count mismtach multivm_fake_processor

    solution: fix
    whilei committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    7a1324e View commit details
    Browse the repository at this point in the history
  14. Merge remote-tracking branch 'whilei/mini-moaf-statetests' into issue…

    …/pluggable_consensus
    r8d8 committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    4a506a7 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2018

  1. Fix merge conflicts

    r8d8 committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    d0e6999 View commit details
    Browse the repository at this point in the history
  2. Fix merge conflicts

    r8d8 committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    e9ea9de View commit details
    Browse the repository at this point in the history
  3. Fix merge conflict

    r8d8 committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    5f778f8 View commit details
    Browse the repository at this point in the history
  4. Fix merge conflicts

    r8d8 committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    1bcb3d1 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2018

  1. Fix chain config layout

    r8d8 committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    dd625b5 View commit details
    Browse the repository at this point in the history
  2. Update block validation

    r8d8 committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    3993033 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2018

  1. Fix block validation

    r8d8 committed Jul 4, 2018
    Configuration menu
    Copy the full SHA
    b446002 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2018

  1. Fix

    r8d8 committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    8cb83c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2018

  1. Fix headerchain handling

    r8d8 committed Jul 10, 2018
    Configuration menu
    Copy the full SHA
    2c3d7bb View commit details
    Browse the repository at this point in the history