Commit Graph

7910 Commits

Author SHA1 Message Date
Brian Schroeder 370b9024ec Poll chain state for contract callback invocation
Previously we relied on filters to watch for block events for firing contract-
creation callback functions. With this change, we now poll the chain's state on
the javascript side using `setInterval`.

This is necessary for low-latency consensus mechanisms like Raft, where a block
event reguarly fires before the web3 layer is able to set the filter to watch
for such events.

This fixes #86.
2017-04-10 11:55:55 -04:00
Brian Schroeder d442011414 Remove notion of detached blocks from raft docs 2017-04-10 11:55:55 -04:00
Brian Schroeder 22b5aed11c Serialize posting of chain insertion events
This is necessary to avoid race conditions for low-latency consensus mechanisms
(like Raft) -- `ChainHeadEvent`s should always be posted in order, and the
existing code could violate this due to asynchronously sending-off events.

Now we sychronously send events in-order, but do so through a buffered
intermediary channel (`chainEvents`) so that publishing them is still
asynchronous.
2017-04-10 11:55:43 -04:00
Brian Schroeder b89d59f9c7 Always use InsertChain to extend the chain
This fixes posting of logs on the minter.
2017-03-31 10:02:42 -04:00
Brian Schroeder 0d4d5b9555 Remove posting of ChainEvent during minting
ChainEvent should instead be posted when we extend the chain.
2017-03-31 10:02:42 -04:00
Andrea dadcd8dc29 Update README.md (#67)
* Update README.md
2017-03-31 08:19:16 -05:00
Joel Burget 82a140abbb Documentation tweaks. (#80)
Documentation updates and gofmt raft.
2017-03-23 14:23:51 -05:00
Joel Burget b6286320ef Add Raft-based consensus (#79)
This was implemented by Joel Burget (@joelburget) and Brian Schroeder (@bts).
2017-03-23 13:41:02 -05:00
Samer Falah 8c47c29f37 Merge pull request #60 from obscuren/quorum-private-logs
core, eth: support private state log and bloom filtering
2017-03-03 12:00:56 -05:00
Jeffrey Wilcke 9d5d5dd3e5 core, eth: support private state log and bloom filtering 2017-02-16 11:17:29 +01:00
Samer Falah e6282c280b Merge pull request #51 from gsalgado/issue-50
Check that msg.To() is not nil in GetVMEnv
2017-02-13 14:15:50 -05:00
Samer Falah 26bd41c292 Merge pull request #52 from jpmorganchase/tylobban-bootnode-docs
document bootnode setup process
2017-02-10 17:05:28 -05:00
Tyrone Lobban b2c1398148 Clarify bootnode start command 2017-02-10 22:01:00 +00:00
Tyrone Lobban de2594f391 Fix bootnode enode comment
Correct the documentation on the bootnode keygen
2017-02-10 17:18:27 +00:00
Tyrone Lobban 18add7d77f Document bootnode setup process 2017-02-10 16:40:33 +00:00
Tyrone Lobban 173f90ca9b Update running.md 2017-02-10 16:09:54 +00:00
Tyrone Lobban 847c7818dd Update running.md 2017-02-10 15:53:43 +00:00
Guilherme Salgado 566a72744a Check that msg.To() is not nil in GetVMEnv
Otherwise it will panic when msg is creating a contract.

Closes: #50
2017-02-10 14:54:43 +01:00
Samer Falah 95d4681c8d Merge pull request #47 from bas-vk/quorum-gaslimit
params: raise gas limit parameter values
2017-02-08 13:48:49 -05:00
Samer Falah 7614a701c5 Update running.md 2017-02-07 09:58:08 -05:00
Bas van Kervel b7ebb712f1 params: raise gas limit parameter values 2017-02-07 11:18:51 +01:00
David Voell af545f4beb Update CONTRIBUTING.md 2017-02-03 16:37:37 -05:00
David Voell bf8777be4a Update README.md 2017-02-03 16:31:34 -05:00
Samer Falah e521fa067d Merge pull request #46 from bts/quorum-managed-state-concurrent-write-fix
state: take write lock in GetNonce
2017-02-02 08:36:37 -05:00
Brian Schroeder 65a8d807f6 state: take write lock in GetNonce
We must take a write lock here because `GetNonce` calls
`StateDB.GetStateObject`, which mutates the DB's live set.
2017-02-01 11:17:54 -05:00
Tyrone Lobban c90f8afe7a Add Third Party section to README.md (#45) 2017-01-25 10:17:38 -05:00
Samer Falah 2e5bfda900 Merge pull request #41 from jpmorganchase/tylobban-patch-1-1
Updated running.md to remove the duplicate address in the genesis block
2017-01-20 12:16:54 -05:00
Tyrone Lobban 5b5e65ed87 Update running.md
remove duplicate ether balance for account 0xed9d02...
2017-01-20 17:12:19 +00:00
Samer Falah b9adeeb963 Merge pull request #40 from bas-vk/quorum-txpool-pending-state
core: init pending state in tx pool on creation
2017-01-17 11:50:06 -05:00
Bas van Kervel de210f976d
core: init pending state in tx pool on creation 2017-01-13 21:22:00 +01:00
Patrick Mylund Nielsen f5e86643ed internal.ethapi.api: Async improves performance in high-latency environments, not low-latency 2016-12-20 12:52:53 -05:00
Patrick Mylund Nielsen f9c5b9caaf internal.ethapi.api: Avoid doing any callback-related work if callbackUrl isn't set in Async 2016-12-20 12:45:06 -05:00
Patrick Mylund Nielsen 5c9bcbb5a8 internal.ethapi.api: Remove unnecessary pool field from Async 2016-12-20 12:38:01 -05:00
Patrick Mylund Nielsen 6d0bd81048 Revert "core/quorum: check if transaction was already applied" (#33) 2016-12-19 22:46:18 -05:00
Patrick Mylund Nielsen d400d62448 internal.ethapi.api: Only send callback if set 2016-12-19 22:45:55 -05:00
Patrick Mylund Nielsen 0c05f9fde1 Add temporary SendTransactionAsync to PublicTransactionPoolAPI (#32) 2016-12-19 22:38:26 -05:00
Samer Falah a5d3e90797 Updated issue template (#28) 2016-12-06 13:31:52 -05:00
Samer Falah 4de8613eac Merge pull request #27 from jpmorganchase/tylobban-contributing
Update CONTRIBUTING.md
2016-12-06 12:14:14 -05:00
Tyrone Lobban 8c6a0ad636 Update CONTRIBUTING.md
align to current Contribution messaging
2016-12-06 17:12:31 +00:00
Patrick Mylund Nielsen 9d0d3290bb internal/ethapi/api: Chop '0x' in GetQuorumPayload if present 2016-12-02 14:17:40 -05:00
Patrick Mylund Nielsen 45d697ec31 internal/ethapi/api: In GetQuorumPayload, return error if PrivateTransactionManager is not enabled (rather than panic) 2016-12-02 10:27:39 -05:00
Patrick Mylund Nielsen 4b3acd454c Merge pull request #25 from jpmorganchase/getquorumpayload
Add PublicBlockChainApi.GetQuorumPayload
2016-12-01 17:59:50 -05:00
Patrick Mylund Nielsen a89830da85 Add PublicBlockChainApi.GetQuorumPayload 2016-12-01 16:40:33 -05:00
Patrick Mylund Nielsen 35502e6952 README.md: quorum-examples/7nodes is the path inside Vagrant 2016-11-24 23:15:42 -05:00
Patrick Mylund Nielsen d6d789075f README.md: Correct example path (examples are now in quorum-examples/examples) 2016-11-23 17:39:30 -05:00
Samer Falah 913c14ea68 Merge pull request #18 from jpmorganchase/tylobban-patch-1
Fix broken link
2016-11-22 10:16:06 -05:00
tylobban 5592580491 Fix broken link
update link to reflect new quorum-examples dir structure
2016-11-22 08:21:10 +00:00
Patrick Mylund Nielsen 6ce61232f9 Merge pull request #17 from jpmorganchase/nonce
core/quorum: check if transaction was already applied
2016-11-21 11:41:28 -05:00
Patrick Mylund Nielsen c6c4f91849 Merge pull request #16 from jpmorganchase/davoell-patch-1
Update README.md
2016-11-21 09:56:07 -05:00
David Voell 59a045e20c Update README.md 2016-11-21 09:30:23 -05:00