Commit Graph

3294 Commits

Author SHA1 Message Date
Clinton Alexander
bbb6650632 Capsule fat JAR now contains a CDDL notice. 2017-02-13 17:50:05 +00:00
Shams Asari
71182ec8c1 End flow if waiting for ledger commit and committer flow errors 2017-02-13 17:50:05 +00:00
Ross Nicoll
3c0d6fd14f Split CashFlow into three flows
Split CashFlow into independent CashIssueFlow, CashExitFlow and CashPaymentFlow,
so that users can be given access to one but not the other(s).

Signed-off-by: Ross Nicoll <ross.nicoll@r3.com>
2017-02-13 17:50:05 +00:00
Ross Nicoll
a9d9441411 Add AnonymousParty superclass of Party
Add AnonymousParty superclass of Party in preparation for anonymising parties stored in
contract states.

Signed-off-by: Ross Nicoll <ross.nicoll@r3.com>
2017-02-13 17:50:05 +00:00
Konstantinos Chalkias
35253e53b8 minor changes in for/while loops. Sanity check for even number of nodes (in buildMerkleTree) has now been moved before entering the loop. 2017-02-13 17:50:05 +00:00
chalkido
dbe3b1636d Extract Class pattern: Move MerkleTree (from MerkleTransaction) to its own class file inside core.crypto package. 2017-02-13 17:50:05 +00:00
Joel Dudley
83bcae0cec Rebuilds docs. 2017-02-13 17:50:05 +00:00
Ross Nicoll
53e7c27d58 Split users for bank and big corp 2017-02-13 17:50:04 +00:00
Joel Dudley
e80001a831 Changes docs to point to cordapp-tutorial instead of cordapp-template as appropriate. 2017-02-13 17:50:04 +00:00
Andrius Dagys
0dddf7ce66 Update version to 0.9-SNAPSHOT 2017-02-13 17:50:04 +00:00
Andrius Dagys
3556967a0e Update notice on the docs index page to point to release M8
Regenerate docs
2017-02-13 17:50:04 +00:00
Andrius Dagys
66409395d4 Release notes for M8 (#213) 2017-02-13 17:50:03 +00:00
Andrius Dagys
e737fa5e9f Demo bug fixes (#217)
* Add webAddress back to NMS as it shifts the port allocation for all subsequent nodes and causes all demos to break.

* Attachment demo: fix node names

* Notary demo: fix certificate paths & ports

* IRS demo: role decider fixed to allocate roles properly. Previously it used to pick current node as the Fixer, causing both nodes to initiate the trade flow, resulting in double spend exceptions..
2017-02-13 17:50:03 +00:00
Andrius Dagys
e4c2a34611 Update version to 0.8 2017-02-13 17:50:03 +00:00
Gary Rowe
aea3f6f20e Fix the port numbers in the documentation to match actual values (build) 2017-02-13 17:50:03 +00:00
Gary Rowe
5787626032 Fix the port numbers in the documentation to match actual values 2017-02-13 17:50:03 +00:00
Shams Asari
26ddf5927d FlowException can be thrown from within UntrustworthyData.unwrap for better Java interop, and more checked exception annotations relating to flows 2017-02-13 17:50:03 +00:00
Ross Nicoll
cbd52b28d6 Update party match in vault service
Replaces the legacy name-only comparison in the vault service with a party comparison. `Party` now
has an equals method that only uses the owning key, and therefore this functions as expected.
2017-02-13 17:50:03 +00:00
Ross Nicoll
998aa8e024 Remove use of names from contracts
Remove dependency on name data that cash/obligation state objects will not have access to party details (such as name)
once privacy is correctly enforced.
2017-02-13 17:50:03 +00:00
Ross Nicoll
8cb27f1052 Switch to using CompositeKey inside network map cache
Switch to using CompositeKey inside network map cache, so that look up of node info from keys
can be done in a more sensible manner.
2017-02-13 17:50:03 +00:00
Mike Hearn
12de4f46b1 Minor: suppress deprecation warning in CordaRPCOpsImpl 2017-02-13 17:50:03 +00:00
Mike Hearn
8627a7dbbe Work around change in how c'tors with optional arguments are handled via RPC in FixingRoleDecider. 2017-02-13 17:50:03 +00:00
Mike Hearn
3871dbbc1f Make FlowLogicRef able to handle multiple constructors more elegantly (e.g. when invoking FinalityFlow directly via RPC). 2017-02-13 17:50:03 +00:00
Mike Hearn
c1034f5214 Print out exceptions in the attachment demo test. 2017-02-13 17:50:03 +00:00
Mike Hearn
f3c9b458fd Improve the flow commit API.
Make FinalityFlow do more, and be used more consistently.

Add a new waitForLedgerCommit API that is intended to be used at the end of flows, or at any other point where a flow wants to wait for a transaction to finalise (but the finalisation flow is being done by someone else).

Update the docs a bit.
2017-02-13 17:50:03 +00:00
kasiastreich
383d794c28 Tearoff fixes (#78)
* Move merkle building extension functions on wire tx to WireTransaction class.

* Add timestamp, notary, transaction type and signers to wire transaction id calculation.

* Change construction of MerkleTree from duplicating last node on a given level to padding leaves' list with zero hash to size of the nearest power of 2 - so we always have a full binary tree.
The problem was that it was possible to construct 2 different transactions with the same ids. Trick worked for txs having number of leaves that were not power of 2.

* Update tear-offs documentation and diagrams to reflect changes in construction of Merkle trees - padding with zero hashes and including all WireTransaction fields in id computation.

* Change in filtering API of WireTransaction for partial Merkle trees calculation.
Instead of many filtering functions over a transaction only one needs to be provided.
Additional change to check and verification of FilteredTransaction.

* IRS demo change. Make filtering function a protected method of RatesFixFlow class.
Comment on situation when capturing too much scope and connected problems with checkpointing.
Change oracle and tear-offs documentation.
2017-02-13 17:50:03 +00:00
Clinton Alexander
4b96fe2502 Cleaned up logging in the webdriver to remove log that fails to display correctly on Windows. 2017-02-13 17:50:02 +00:00
Joel Dudley
b9a5f34371 Addresses RGB feedback. 2017-02-13 17:50:02 +00:00
Clinton
48c65ac5d2 Merge pull request #239 from corda/clint-webserverstartupfix
Fixed the race condition in web server startup with the keystore creation.
2017-02-13 17:20:25 +00:00
Clinton Alexander
3726430e5b Removed unused imports in webserver.kt 2017-02-13 16:52:05 +00:00
Clinton Alexander
ae961a4d99 Fixed the race condition in web server startup with the keystore creation. 2017-02-13 16:42:46 +00:00
Clinton
b7aafac367 Merge pull request #236 from corda/clint-cordformtestfixes
Cordformation now correctly includes and excludes cordapps.
2017-02-13 16:14:59 +00:00
Patrick Kuo
28e83d1e66 Example code for contract upgrade using RPC. (#237)
* Added missing out modifier to UpgradedContract class
* Added ContractUpgradeFlow.Instigator to whitelist in AbstractNode
* Added test for contract upgrade using RPC
2017-02-13 15:39:48 +00:00
Chris Rankin
8621d47e09 CORPRIV-660: Display Web server's port number on launch button. 2017-02-13 15:13:47 +00:00
Patrick Kuo
1e8c80855c * Moved DoormanParameter to its own file
* throws ShowHelpException instead of exitProcess in the helper method.
2017-02-13 15:00:57 +00:00
Andrius Dagys
36052cbd63 Send a transaction for notarisation only if it has inputs or a timestamp 2017-02-13 14:54:46 +00:00
Andrius Dagys
a19dd55257 Pass a FilteredTransaction instead of a Signed transaction to a non-validating notary flow to preserve privacy.
This also means that the non-validating notary can service requests on the network without loading any custom plugins.
2017-02-13 14:54:46 +00:00
Chris Rankin
94747dcddf Switch from Runtime.exec() to ProcessBuilder. 2017-02-13 12:27:06 +00:00
Chris Rankin
166cbbf2e5 Add utility function for creating SLF4J loggers, and close unused I/O streams from forked processes. 2017-02-13 10:39:11 +00:00
Chris Rankin
bb8aa50d68 CORPRIV-659: Basic shell script to package DemoBench as DMG. 2017-02-13 08:58:31 +00:00
Chris Rankin
4960a472ef CORPRIV-659: Add bin/java to minimal JRE. 2017-02-13 08:54:19 +00:00
Chris Rankin
3895d34080 Use "safe" casting operator. 2017-02-12 13:52:09 +00:00
Chris Rankin
e42613bffe Document provenance of jediterm-terminal-2.5.jar. 2017-02-11 23:39:26 +00:00
Chris Rankin
1187564835 Tidy up gradle usage. 2017-02-11 22:27:55 +00:00
Chris Rankin
28d7170aca CORPRIV-660: Allow user to launch Web server for each node. 2017-02-10 16:38:41 +00:00
Clinton Alexander
4b71b60066 Cordformation now correctly includes and excludes cordapps. 2017-02-10 15:44:04 +00:00
Chris Rankin
655cdf5e96 Merge branch 'master' into demobench 2017-02-10 14:24:04 +00:00
Chris Rankin
f180ae96bd Merge remote-tracking branch 'corda-public/master' 2017-02-10 14:23:46 +00:00
Chris Rankin
6b86ee415b Improve packaging information. 2017-02-10 13:44:59 +00:00
Chris Rankin
0a1632a0d5 CORPRIV-659: Add icon file for DMG package. 2017-02-10 12:25:28 +00:00