Commit Graph

7910 Commits

Author SHA1 Message Date
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
davoell 403dd340bd Update README.md 2016-11-15 18:15:12 -05:00
davoell 3d085b8761 Add files via upload 2016-11-15 18:12:09 -05:00
Chetan Sarva aafa5e41b8 [docs] updated documentation: edited for clarity 2016-11-15 16:55:10 -05:00
davoell d16b51147a Merge pull request #1 from jpmorganchase/docs
Rewrote main README
2016-11-15 13:23:49 -05:00
Patrick Mylund Nielsen b545f51c3c Merge pull request #4 from bas-vk/zero-gasprice
cmd,eth enforce gas price of 0
2016-11-15 12:44:06 -05:00
Bas van Kervel 9bb4635f70 cmd,eth enforce gas price of 0 2016-11-15 18:40:08 +01:00
Patrick Mylund Nielsen 70448724e8 Merge pull request #3 from jpmorganchase/fix_private_sig
Fix SetPrivate and validation
2016-11-15 09:00:57 -05:00
Chetan Sarva ad9d04d6ba Fix SetPrivate and validation
* Builds on the fix in c828292fa2c009e2865b1f0d521a080499a234d8;
* SetPrivate() must be called after the tx has been signed and
* just before inserting into txpool.

* Added 37 & 38 as valid V values in validation routine
2016-11-14 23:48:10 -05:00
Chetan Sarva 35d49a0a69 added getTransaction output 2016-11-14 19:26:48 -05:00
Patrick Mylund Nielsen c828292fa2 SetPrivate after tx has been populated 2016-11-14 19:26:11 -05:00
Chetan Sarva 6aa91b115f Rewrite of main readme; detailed docs moved to docs/ folder 2016-11-14 19:23:29 -05:00
Patrick Mylund Nielsen 45a668d8ab Additional private integration points 2016-11-14 18:53:14 -05:00
Patrick Mylund Nielsen 7b5da9d64b Correct block_voting.sol link 2016-11-14 01:57:04 -05:00
Patrick Mylund Nielsen ab3889c3fb Add notes on sending Private Transactions to README.md 2016-11-14 01:05:54 -05:00
Patrick Mylund Nielsen 8d1b23245a Clarify 7nodes roles 2016-11-14 00:54:08 -05:00
Patrick Mylund Nielsen 35caf0ddc2 Add new vendored packages 2016-11-14 00:41:46 -05:00
Patrick Mylund Nielsen bea1e6de1d Rename private.go import path to ethereum/go-ethereum 2016-11-14 00:39:47 -05:00