Commit Graph

8027 Commits

Author SHA1 Message Date
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
Bas van Kervel 269a7ee8d4 core/quorum: check if transaction was already applied
Due to the asynchronous eventing system its possible that transactions
are applied on the pending state multiple times. Once with the TxPreEvent
event and once as a result of the ChainHeadEvent that will fetch all
processable transaction from the transaction pool. This leads to an
invalid nonce message.

This PR will keep track of transactions applied to the pending state
and will verify that an transaction was not applied before.
2016-11-21 12:31:24 +01:00
David Voell 85327f743b Update README.md 2016-11-20 21:35:01 -05:00
Chetan Sarva c3c789c774 docs: fixed path 2016-11-18 11:52:54 -05:00
Chetan Sarva 6ab6277724 docs: privacy APIs 2016-11-18 10:51:43 -05:00
Patrick Mylund Nielsen 116bb4544f Merge pull request #14 from bas-vk/votenonce
quorum: retrieve nonce from txpool instead of pending state
2016-11-18 10:18:31 -05:00
Patrick Mylund Nielsen a961389cc6 Merge pull request #15 from jpmorganchase/permissions-rebased
implemented node permissioning
2016-11-18 10:17:44 -05:00
Bas van Kervel 9653112893 quorum: retrieve nonce from txpool instead of pending state 2016-11-18 13:58:52 +01:00
Chetan Sarva 8011cd2fb6 docs: updated contributing info 2016-11-17 22:35:18 -05:00
Chetan Sarva cd152a1518 docs: updated whitepaper link 2016-11-17 22:15:38 -05:00
Sudhir Upadhyay 5806b453a9 implemented node permissioning 2016-11-17 18:50:28 -05:00
Chetan Sarva 3dfb13fe86 docs: updated architecture diagram 2016-11-17 16:07:02 -05:00
Chetan Sarva 2cf8e68619 docs: updated quickstart example 2016-11-17 16:02:13 -05:00
Patrick Mylund Nielsen 9294f11f40 Update first line in README.md to be more accurate 2016-11-17 14:14:48 -05:00
Patrick Mylund Nielsen f080020e86 Merge pull request #12 from jpmorganchase/jpm-master
core: added small private test framework
2016-11-17 10:51:34 -05:00
Samer Falah ed599df741 Merge pull request #13 from bas-vk/privpubstate
core: check private state for to existance first
2016-11-17 09:13:29 -05:00
Bas van Kervel 2ea7af01c4 core: check private state for to existance first 2016-11-17 15:06:32 +01:00
Jeffrey Wilcke 591b463b32 core: added small private test framework
For an example on how to create such a test run: `godep -hhtp=:6060 and
navigate to http://localhost:6060/pkg/github.com/ethereum/go-ethereum/core/#example_MakeCallHelper
2016-11-17 14:14:05 +01:00
Samer Falah a84c31ce76 Merge pull request #10 from jpmorganchase/jpm-master
Private TX processing and test improvements
2016-11-17 07:43:57 -05:00
Jeffrey Wilcke 1097bdb1b6 core, eth: Fixed creation if private addresses on public state
Whenever a private transaction was initiated and executed the address
would be created on the public state when initialising the initial Call.
To prevent this we use the msg's address rather than using the to method
on the state transition object.

Improved private transaction tests by checking existance of private and
public addresses on the incorrect state.
2016-11-17 13:22:58 +01:00
Jeffrey Wilcke fb5564a7de core: added private tx test, added PrivateMessage
PrivateMessage embeds Message and requires IsPrivate() bool to be
defined on the implementation.
2016-11-17 12:15:04 +01:00
Patrick Mylund Nielsen eed0947154 GetVMEnv fix 2016-11-16 18:36:12 -05:00
Patrick Mylund Nielsen 20c7f79f14 Merge pull request #9 from jpmorganchase/state-transition-fix
core: set correct public state for all state transition functions
2016-11-16 18:18:20 -05:00
Patrick Mylund Nielsen ef93d58e07 Merge pull request #8 from jpmorganchase/formatting
Grammar / formatting fixes.
2016-11-16 18:10:57 -05:00
Jeffrey Wilcke 410edf0b1a core: set correct public state for all state transition functions
Fixed an issue where public state and private state were mixed during
the initial phase of the state transition. This causes severe issues
when creating new contracts (and addresses) and messes up the public
nonce, which, indirectly, has an effect on the contracts that are
created on the public state for both public and private txs.
2016-11-17 00:05:44 +01:00
Joel Burget e494b5063c
Grammar / formatting fixes. 2016-11-16 16:18:19 -05:00
Patrick Mylund Nielsen 23201564ff Merge pull request #7 from jpmorganchase/incrementignored
Increment sender nonce even if we are ignoring a private transaction
2016-11-16 13:08:39 -05:00
Patrick Mylund Nielsen 14911013b1 Merge pull request #6 from jpmorganchase/privpub
eth: look in private an public state on reading state data
2016-11-16 13:08:09 -05:00
Patrick Mylund Nielsen 46d00bf639 Return zero gas usage on private transactions whether or not you're party to the transaction 2016-11-16 13:03:42 -05:00
Patrick Mylund Nielsen 497ab68ce0 Increment sender nonce even if we are ignoring a private transaction 2016-11-16 12:57:41 -05:00
Bas van Kervel c371524cbb eth: look in private an public state on reading state data 2016-11-16 18:51:06 +01:00
Patrick Mylund Nielsen f4b5a8c83e Merge pull request #5 from bas-vk/state
core/quorum, core: add private transaction state processing
2016-11-16 10:10:11 -05:00
Jeffrey Wilcke 6d75c3b1c0 core/quorum, core: add private transaction state processing 2016-11-16 15:53:42 +01:00
davoell dfcad9e07e Update README.md 2016-11-15 18:16:49 -05:00