aboutsummaryrefslogtreecommitdiffstats
path: root/consensus/clique
Commit message (Collapse)AuthorAgeFilesLines
* cosensus, core, eth, params, trie: fixes + clique history capPéter Szilágyi2019-05-162-3/+20
|
* core: fix import errors on clique crashes + empty blocks (#19544)Péter Szilágyi2019-05-101-0/+113
| | | | | | | | | | * core: fix import errors on clique crashes + empty blocks * cosensus/clique, core: add test for the mirrored state issue * core: address todo question wrt log count * core: raise a louder warning for non-clique known blocks
* consensus,core,miner: avoid overhead of creating a new block (#19301)Martin Holst Swende2019-04-301-2/+10
| | | | | | | | * consensus,core,miner: avoid overhead of creating a new block * consensus: nitpick dot * consensus: fix some comment formatting nits
* all: simplify timestamps to uint64 (#19372)Martin Holst Swende2019-04-031-6/+6
| | | | | | | | | | | | | | * all: simplify timestamps to uint64 * tests: update definitions * clef, faucet, mobile: leftover uint64 fixups * ethash: fix tests * graphql: update schema for timestamp * ethash: remove unused variable
* Merge pull request #19021 from karalabe/database-cleanupPéter Szilágyi2019-03-071-2/+2
|\ | | | | all: clean up and properly abstract database accesses
| * all: clean up and proerly abstract database accessPéter Szilágyi2019-03-061-2/+2
| |
* | consensus/clique: fix test copy paste error, test what's documentedPéter Szilágyi2019-03-061-2/+2
|/
* signer, clef: implement EIP191/712 (#17789)Paul Berg2019-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Named functions and defined a basic EIP191 content type list * Written basic content type functions * Added ecRecover method in the clef api * Updated the extapi changelog and addded indications in the README * Changed the version of the external API * Added tests for 0x45 * Implementing UnmarshalJSON() for TypedData * Working on TypedData * Solved the auditlog issue * Changed method to signTypedData * Changed mimes and implemented the 'encodeType' function for EIP-712 * Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible * Drafted recursive encodeData * Ran goimports and gofmt * Drafted first version of EIP-712, including tests * Temporarily switched to using common.Address in tests * Drafted text/validator and and rewritten []byte as hexutil.Bytes * Solved stringified address encoding issue * Changed the property type required by signData from bytes to interface{} * Fixed bugs in 'data/typed' signs * Brought legal warning back after temporarily disabling it for development * Added example RPC calls for account_signData and account_signTypedData * Named functions and defined a basic EIP191 content type list * Written basic content type functions * Added ecRecover method in the clef api * Updated the extapi changelog and addded indications in the README * Added tests for 0x45 * Implementing UnmarshalJSON() for TypedData * Working on TypedData * Solved the auditlog issue * Changed method to signTypedData * Changed mimes and implemented the 'encodeType' function for EIP-712 * Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible * Drafted recursive encodeData * Ran goimports and gofmt * Drafted first version of EIP-712, including tests * Temporarily switched to using common.Address in tests * Drafted text/validator and and rewritten []byte as hexutil.Bytes * Solved stringified address encoding issue * Changed the property type required by signData from bytes to interface{} * Fixed bugs in 'data/typed' signs * Brought legal warning back after temporarily disabling it for development * Added example RPC calls for account_signData and account_signTypedData * Polished and fixed PR * Polished and fixed PR * Solved malformed data panics and also wrote tests * Solved malformed data panics and also wrote tests * Added alphabetical sorting to type dependencies * Added alphabetical sorting to type dependencies * Added pretty print to data/typed UI * Added pretty print to data/typed UI * signer: more tests for typed data * signer: more tests for typed data * Fixed TestMalformedData4 errors and renamed IsValid to Validate * Fixed TestMalformedData4 errors and renamed IsValid to Validate * Fixed more new failing tests and deanonymised some functions * Fixed more new failing tests and deanonymised some functions * Added types to EIP712 output in cliui * Added types to EIP712 output in cliui * Fixed regexp issues * Fixed regexp issues * Added pseudo-failing test * Added pseudo-failing test * Fixed false positive test * Fixed false positive test * Added PrettyPrint method * Added PrettyPrint method * signer: refactor formatting and UI * signer: make ui use new message format for signing * Fixed breaking changes * Fixed rules_test failing test * Added extra regexp for reference types * signer: more hard types * Fixed failing test, formatted files * signer: use golang/x keccak * Fixed goimports error * clef, signer: address some review concerns * Implemented latest recommendations * Fixed comments and uintint256 issue * accounts, signer: fix mimetypes, add interface to sign data with passphrase * signer, accounts: remove duplicated code, pass hash preimages to signing * signer: prevent panic in type assertions, make cliui print rawdata as quotable-safe * signer: linter fixes, remove deprecated crypto dependency * accounts: fix goimport
* accounts, eth, clique, signer: support for external signer API (#18079)Martin Holst Swende2019-02-052-38/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | * accounts, eth, clique: implement external backend + move sighash calc to backend * signer: implement account_Version on external API * accounts/external: enable ipc, add copyright * accounts, internal, signer: formatting * node: go fmt * flags: disallow --dev in combo with --externalsigner * accounts: remove clique-specific signing method, replace with more generic * accounts, consensus: formatting + fix error in tests * signer/core: remove (test-) import cycle * clique: remove unused import * accounts: remove CliqueHash and avoid dependency on package crypto * consensus/clique: unduplicate header encoding
* vendor, crypto, swarm: switch over to upstream sha3 packageDave McGregor2019-01-041-2/+2
|
* consensus/clique: fix comment typo (#18103)mr_franklin2018-11-141-1/+1
|
* all: protect self-mined block during reorg (#17656)gary rong2018-09-201-1/+1
|
* consensus/clique: hide no transaction error (#17614)gary rong2018-09-191-6/+2
|
* consensus/clique, core: chain maker clique + error testsPéter Szilágyi2018-09-113-71/+184
|
* consensus/clique: only trust snapshot for genesis or les checkpointPéter Szilágyi2018-09-101-1/+1
|
* consensus, miner: stale block mining support (#17506)gary rong2018-08-281-16/+23
| | | | | | | | | | * consensus, miner: stale block supporting * consensus, miner: refactor seal signature * cmd, consensus, eth: add miner noverify flag * cmd, consensus, miner: polish
* miner: fix state commit, track old work packages too (#17490)gary rong2018-08-231-0/+5
| | | | | | | | | | * miner: commit state which is relative with sealing result * consensus, core, miner, mobile: introduce sealHash interface * miner: evict pending task with threshold * miner: go fmt
* consensus/clique, light: light client snapshots on RinkebyPéter Szilágyi2018-08-212-16/+17
|
* consensus/ethash: move remote agent logic to ethash internal (#15853)gary rong2018-08-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * consensus/ethash: start remote ggoroutine to handle remote mining * consensus/ethash: expose remote miner api * consensus/ethash: expose submitHashrate api * miner, ethash: push empty block to sealer without waiting execution * consensus, internal: add getHashrate API for ethash * consensus: add three method for consensus interface * miner: expose consensus engine running status to miner * eth, miner: specify etherbase when miner created * miner: commit new work when consensus engine is started * consensus, miner: fix some logics * all: delete useless interfaces * consensus: polish a bit
* consensus/clique: replace bubble sort by golang stable sorthadv2018-07-241-11/+13
|
* consensus: move test use only var/func to test(#17004)Wenbiao Zheng2018-07-242-2/+1
|
* consensus/clique: fixed documentation copy-paste issue (#17137)LeoLiao2018-07-091-1/+1
|
* core, consensus: fix some typos in comment code and output loghadv2018-05-191-1/+1
|
* all: get rid of error when creating memory database (#16716)gary rong2018-05-091-1/+1
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* core/rawdb: separate raw database access to own package (#16666)Péter Szilágyi2018-05-071-1/+2
|
* accounts, consensus, core, eth: make chain maker consensus agnostic (#15497)gary rong2017-12-221-5/+23
| | | | | | | | | | * accounts, consensus, core, eth: make chain maker consensus agnostic * consensus, core: move CalcDifficulty to Engine interface * consensus: add docs for calcDifficulty function * consensus, core: minor comment fixups
* all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-131-1/+1
|
* cmd, consensus, core, miner: instatx clique for --dev (#15323)Péter Szilágyi2017-10-242-4/+10
| | | | | | | | * cmd, consensus, core, miner: instatx clique for --dev * cmd, consensus, clique: support configurable --dev block times * cmd, core: allow --dev to use persistent storage too
* consensus/clique: add fork hash enforcement (#15236)Péter Szilágyi2017-10-102-1/+6
|
* consensus: revert time.Until changeEgon Elbre2017-08-071-1/+1
|
* consensus: fix megacheck warningsEgon Elbre2017-08-072-3/+3
|
* Merge pull request #14596 from markya0616/valid_clique_votePéter Szilágyi2017-06-232-10/+23
|\ | | | | consensus/clique: choose valid votes
| * consensus/clique: minor cleanupsPéter Szilágyi2017-06-231-6/+7
| |
| * consensus/clique: choose valid votesmark.lin2017-06-142-11/+23
| |
* | consensus/clique: fix typo and don't add snapshot into recents againmark.lin2017-06-201-8/+7
| |
* | rlp, trie, contracts, compression, consensus: improve comments (#14580)S. Matthew English2017-06-123-10/+10
|/
* consensus/clique: cache block signatures for fast checksPéter Szilágyi2017-05-302-23/+34
|
* consensus/clique: fix overflow on recent signer check around genesisPéter Szilágyi2017-05-031-1/+1
|
* consensus, core, ethstats: use engine specific block beneficiary (#14318)Péter Szilágyi2017-04-121-0/+6
| | | | | | * consensus, core, ethstats: use engine specific block beneficiary * core, eth, les, miner: use explicit beneficiary during mining
* consensus/clique, internal/web3ext: support hash based API queries (#14321)Péter Szilágyi2017-04-124-30/+53
| | | | | | * consensus/clique, internal/web3ext: support hash based API queries * consensus/clique: make RPC return types public
* consensus/clique: Proof of Authority (#3753)Péter Szilágyi2017-04-104-0/+1438
This PR is a prototype implementation of plugable consensus engines and the Clique PoA protocol ethereum/EIPs#225