aboutsummaryrefslogtreecommitdiffstats
path: root/core/events.go
Commit message (Collapse)AuthorAgeFilesLines
* app: remove pending block logic (#149)bojie2019-04-091-2/+0
|
* core, dex: polish sync (#75)Sonic2019-04-091-0/+3
| | | | | | | | | | | | | | | - Broadcasting blocks at chain head event is not correct when the full node is not running in block proposer mode. Introduce NewFinalizedBlockEvent, this event is post by the full node which runs in block proposer mode when a block is witnessed and resulting in some blocks are considered finalized. - Non block proposer node will still broadcast blocks at the following moment (same as ethereum): 1. a sync with a peer is terminated successfully 2. a block passes the fetcher's header check during inserting blocks 3. a block is successfully inserted by fetcher - Don't trigger a sync when we are not behind other peers more than acceptable distance. Fetcher is able to cover this.
* core: tx_pool: remove transactions on BlockConfirmed eventWei-Ning Huang2019-04-091-0/+2
|
* dex: redesign p2p network topologySonic2019-04-091-0/+7
| | | | | | | | | | - Let p2p server support direct connection and group connection. - Introduce node meta table to maintain IP of all nodes in node set, in memory and let nodes in the network can sync this table. - Let peerSet able to manage direct connections to notary set and dkg set. The mechanism to refresh the network topology when configuration round change is not done yet.
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-04-091-2/+2
|
* miner: regenerate mining work every 3 seconds (#17413)gary rong2018-08-161-3/+0
| | | | | | * miner: regenerate mining work every 3 seconds * miner: polish
* core, eth: minor txpool event cleanupsPéter Szilágyi2018-05-181-5/+2
|
* all: collate new transaction events togetherrjl4934564422018-05-181-2/+2
|
* core: remove unused eventsmark.lin2017-06-231-16/+0
|
* core: typos and comments improvechanghong2017-05-251-1/+1
| | | | | | | | 1. fix typos 2. methods recevier of struct should be same 3. comments improve (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
* cmd, core, eth, miner: remove txpool gas price limits (#14442)Péter Szilágyi2017-05-171-4/+0
|
* core, light: delete SplitStatTy, ChainSplitEvent (unused)Felix Lange2017-04-221-6/+0
|
* core/vm: move Log to core/typesFelix Lange2017-01-061-6/+5
| | | | | | | | This significantly reduces the dependency closure of ethclient, which no longer depends on core/vm as of this change. All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too, the constructor simply returned a literal.
* core, core/vm, eth/filters: move Removed field into vm.LogFelix Lange2016-12-051-1/+0
| | | | | | | | | | | | This field used to be assigned by the filter system and returned through the RPC API. Now that we have a Go client that uses the underlying type, the field needs to move. It is now assigned to true when the RemovedLogs event is generated so the filter system doesn't need to care about the field at all. While here, remove the log list from ChainSideEvent. There are no users of this field right now and any potential users could subscribe to RemovedLogsEvent instead.
* core: remove dead eventPéter Szilágyi2016-11-241-3/+0
|
* core, miner: add PendingStateEvent to track non-log updatesPéter Szilágyi2016-02-291-0/+3
|
* eth/filters: ✨ pending logs ✨Jeffrey Wilcke2016-02-131-1/+6
| | | | | | Pending logs are now filterable through the Go API. Filter API changed such that each filter type has it's own bucket and adding filter explicitly requires you specify the bucket to put it in.
* core: added a new RemovedLogEventJeffrey Wilcke2015-12-011-0/+3
| | | | | | When a chain reorganisation occurs we collect the logs that were deleted during the chain reorganisation. The removed logs are posted to the event mux indicating that those were deleted during the reorg.
* cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-5/+5
| | | | | | | | | | | | | | | | | * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * core/vm: byte code VM moved to jump table instead of switch * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * Byte code VM now shares the same code as the JITVM * Renamed Context to Contract * Changed initialiser of state transition & unexported methods * Removed the Execution object and refactor `Call`, `CallCode` & `Create` in to their own functions instead of being methods. * Removed the hard dep on the state for the VM. The VM now depends on a Database interface returned by the environment. In the process the core now depends less on the statedb by usage of the env * Moved `Log` from package `core/state` to package `core/vm`.
* core, core/types: readd transactions after chain re-orgJeffrey Wilcke2015-09-221-0/+3
| | | | | | | | | | | | | | Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* core: changed how head events are checkedobscuren2015-05-151-0/+2
|
* core, eth, miner: improved tx removal & fatal error on db sync errobscuren2015-05-111-1/+5
| | | | | | | | * core: Added GasPriceChange event * eth: When one of the DB flush methods error a fatal error log message is given. Hopefully this will prevent corrupted databases from occuring. * miner: remove transactions with low gas price. Closes #906, #903
* moved state and vm to coreobscuren2015-03-231-1/+1
|
* finally merged *the missing*obscuren2015-03-231-0/+4
|
* fixed chain event. Closes #529obscuren2015-03-191-6/+23
|
* Queued approach to delivering chain eventsobscuren2015-03-061-0/+10
|
* Optimisations and fixed a couple of DDOS issues in the minerobscuren2015-02-201-0/+3
|
* add NewMinedBlockEventzelig2014-12-151-0/+3
|
* Renamed `chain` => `core`obscuren2014-12-041-0/+12