Viktor Kolomeyko
c621c7d123
Attempt to make NodeStatePersistenceTests more stable ( #1895 )
...
By ensuring that the nodes are properly started and aware of each other before firing any flows through them.
Also minor refactoring.
2017-10-18 09:14:03 +01:00
Shams Asari
3372e49898
Fixed the node shell to work with the DataFeed class
2017-10-17 12:27:01 +01:00
szymonsztuka
6a00df322b
reference to finance module via not hardcoded group ID ( #1515 )
...
* generic way to reference to group id when loading finance.jar via cordapp
2017-10-17 11:03:49 +01:00
Viktor Kolomeyko
cac3057877
CORDA-540: Make Verifier work in AMQP mode ( #1870 )
2017-10-17 10:44:27 +01:00
Ross Nicoll
63b7eb3f70
CORDA-654: Move from chooseIdentity() to singleIdentity() ( #1819 )
...
Move from `chooseIdentity()` to `singleIdentity()` where tests use a single identity, or to fetching by name where multiple identities are present, so we stop using the first identity as special.
2017-10-16 15:51:26 +01:00
Joel Dudley
d8b81f755a
Makes docs fixes flagged by various internals.
2017-10-16 15:15:02 +01:00
Joel Dudley
d3e8df1644
Separates out the tutorial code into separate docs to ensure it compiles.
2017-10-16 14:39:28 +01:00
mkit
83b9080502
Adding an option to override the default isolation level on per transaction basis ( #1886 )
2017-10-16 14:03:51 +01:00
josecoll
2a68e23e69
Improved Cash Selection interface ( #1858 )
...
* Cash selection refactoring such that 3d party DB providers are only required to implement Coin Selection SQL logic.
* Re-added debug logging statement.
* Updated to include PR review feedback from VK
* Refactoring following rebase from master.
* Fix broken JUnits following rebase.
* Use JDBC ResultSet getBlob() and added custom serializer to address concern raised by tomtau in PR.
* Fix failing JUnits.
2017-10-16 13:47:35 +01:00
Andrzej Cichocki
38cf4a489e
CORDA-676 Eager cordapp schemas ( #1839 )
...
* Retire customSchemas.
* Key cordapp-to-hash map by url as native equality too strict.
2017-10-16 11:35:29 +01:00
Alberto Arri
d3d87c2497
[CORDA-442] DemoBench copies around the NodeInfos for running nodes. ( #1796 )
...
[CORDA-442] DemoBench copies around the NodeInfos for running nodes.
2017-10-16 09:42:13 +01:00
Viktor Kolomeyko
99b509cb68
Attempting to make VerifierTests more stable ( #1883 )
...
* Attempting to make VerifierTests more stable
Main point: Alice node will always be faster to locate Alice by name than NotaryNode. Especially given that it may take some time
for Alice node to get reflected on the Notary's NetworkMap.
Also additional logging which might be helpful during debug and IntelliJ changed project structure reflection.
* Introduce a way for nodes to reliably learn about each other existence in the NetworkMap
Plus minor refactoring of the Driver code.
2017-10-16 09:16:40 +01:00
josecoll
be235673e1
H2 coin selection uses Prepared Statement to protect against SQL injection ( #1872 )
...
* Updated H2 coin selection code to use Prepared Statement to protect against SQL Injection attacks.
* Clean-up deprecations and warnings.
* Revert correct indentation.
* Revert logging back to debug for SQL display.
* Fix broken tests.
2017-10-13 16:26:55 +01:00
Clinton
2680361696
Renamed "plugins" dir to "cordapps" ( #1644 )
...
* Renamed plugins dir to cordapps dir while maintaining backwards compatibility with the plugins dir.
Bumped gradle plugins to 2.0.4
2017-10-13 15:01:24 +01:00
Chris Rankin
635ad9ac92
Ensure that the contents of OpaqueBytes cannot be modified. ( #1871 )
...
* Ensure that contents of OpaqueBytes cannot be modified.
* Update documentation and restore the signature verification check.
* Update the API definition.
* KDoc fixes.
* Update the changelog for v1.1.
2017-10-13 12:27:42 +01:00
Clinton
86ede6f928
Upgraded to 2.0-SNAPSHOT since current changes are for 2.0 ( #1880 )
2017-10-13 12:21:48 +01:00
Andrzej Cichocki
ce5b7de718
CORDA-530 Unduplicate code ( #1791 )
2017-10-13 12:15:52 +01:00
Andrius Dagys
7b10e92819
Fixed AbstractNode to load custom notary services properly ( #1720 )
...
* Fixed AbstractNode to load custom notary services properly.
Added a custom notary sample.
* Prevent multiple custom notaries from being loaded
* Throw if more than once custom notary service is loaded
2017-10-13 10:36:25 +01:00
Joel Dudley
544b761682
Remove broken link.
2017-10-12 13:21:00 +01:00
Chris Rankin
d1c5111567
Remove the two header lines from the diff output to simplify the +/- … ( #1875 )
...
* Remove the two header lines from the diff output to simplify the +/- check.
* Revert Kt class changes as they alter the public API.
2017-10-12 11:39:22 +01:00
Ross Nicoll
327f0ebd73
CORDA-654: Migrate test APIs to match identity changes ( #1744 )
...
Rework identity usage in tests to extract identity from nodes by name, rather than just arbitrarily choosing the first identity. This better models the intended design for production (future work).
2017-10-11 18:26:09 +01:00
Konstantinos Chalkias
ed79db6864
Clean up Crypto ( #1866 )
...
clean up Crypto comments + PublicKey.toSHA256Bytes() uses .encoded
2017-10-11 17:47:48 +01:00
Joel Dudley
de391dc9f0
Adds a length method to calculate a time-window's length.
2017-10-11 16:15:24 +01:00
Matthew Nesbit
692b57d845
Merge pull request #1853 from corda/mnesbit-protect-sessionmessage
...
Protect the serialization/deserialization code of SessionMessage data
2017-10-11 15:53:03 +01:00
Matthew Nesbit
899f7f9d0d
Change the serialization/deserialization code of SessionMessage data to add more validation.
...
Address PR comments
As pointed out by Shams the SessionInit must be well formed at this point.
2017-10-11 15:17:48 +01:00
Joel Dudley
e232d111ea
Applies release-V1 vault docs fixes to master.
2017-10-11 14:46:04 +01:00
Rick Parker
3fdc69e541
Fix coin selection with Flow-friendly sleep ( #1847 )
2017-10-11 14:33:20 +01:00
Alberto Arri
d0d0f132df
Create nodeInfoDirectory in NodeInfoWatcher initialization, and make NodeInfoWatcher logging less verbose and less frequent ( #1857 )
...
Let NodeInfoWatcher create the directory it wants to poll at startup.
Also log failure in creating the directory, but don't log anything if it can be found at poll time.
2017-10-11 12:54:30 +01:00
Andras Slemmer
af44c96c14
Merge pull request #1863 from corda/aslemmer-kryo-hook
...
Aslemmer kryo hook
2017-10-11 12:42:18 +01:00
Clinton
15d29d7982
Fixed the dozens of artifactory warnings at gradle initialisation. ( #1862 )
...
* Fixed the dozens of artifactory warnings at gradle initialisation.
2017-10-11 12:41:11 +01:00
Chris Rankin
9cec137a31
CORDA-702: Don't whitelist certain non-annotated types ( #1864 )
...
* Don't whitelist arrays of non-serialisable types for RPC.
* Don't whitelist enums which have not been annotated as serialisable.
2017-10-11 11:17:14 +01:00
Viktor Kolomeyko
ef0f0acc4a
Make integration tests pass in AMQP mode, part 1 ( #1855 )
2017-10-11 11:13:46 +01:00
Andrzej Cichocki
4ee250a19b
Retire setCordappPackages. ( #1860 )
2017-10-11 10:35:21 +01:00
Andras Slemmer
b354d335a3
Remove extra blank line
2017-10-11 10:35:11 +01:00
Andras Slemmer
c2cda569e1
Add kryo-hook to settings.gradle
2017-10-11 10:06:52 +01:00
Andras Slemmer
c56c9fd455
Add README.md, some docs
2017-10-11 10:06:27 +01:00
Andras Slemmer
16b26970a9
Add kryo-hook javaagent
2017-10-11 09:54:19 +01:00
Matthew Nesbit
c96031d311
Merge pull request #1846 from corda/mnesbit-upgrade-cordaservices
...
Update code to use AppServiceHub in services
2017-10-11 09:11:35 +01:00
Matthew Nesbit
f19ff141dd
Update code to use AppServiceHub in services and support for services when using MockServices hub.
2017-10-10 17:11:32 +01:00
Clinton Alexander
daa6caeee2
Bumped gradle plugins to 2.0.2 to publish latest changes.
2017-10-10 15:50:23 +01:00
Alberto Arri
3bee830604
[CORDA-442] Removed the NetworkMap option from Cordform, changed all the examples… ( #1827 )
...
[CORDA-442]
Removed the option for Cordformation to specify a networkMap.
All the samples have been migrated to not specify a networkMap.
2017-10-10 15:45:42 +01:00
Maksymilian Pawlak
32e7272642
Review fixes
2017-10-10 15:27:29 +01:00
Maksymilian Pawlak
e7e8bff3dd
Merge branch 'master' into m4ksio_gradle_no_o_fix
...
# Conflicts:
# constants.properties
2017-10-10 15:26:36 +01:00
szymonsztuka
8c9045bd73
deployNodes Gradle task appends properties from an optional file to node.conf ( #1444 )
...
* deployNodes Gradle task appends properties from an optional file to node.conf
2017-10-10 15:03:05 +01:00
Shams Asari
bd53a22efa
Removed extraAdvertisedServiceIds config
...
The remaining use for it was the finance CorDapp for permissioning CCY issuers. Instead this is now taken from a custom config in node.conf.
2017-10-10 13:47:37 +01:00
Ross Nicoll
34dbbe626b
Add confidential identity support to cash exit logic ( #1849 )
...
generateExit() previously required all states to have a single owner, which was used as the change output's owner. This deprecates that function but enables it to work as expected using `firstOrNull()` instead of `singleOrNull()`, and adds new functions which take in the change output's owner.
2017-10-10 13:46:25 +01:00
Ross Nicoll
242b019dc2
CORDA-641: Remove special case handling of notary transactions ( #1675 )
...
Move special case handling of notary transactions into `SignedTransaction`
2017-10-10 13:23:31 +01:00
Viktor Kolomeyko
0e47e53b60
Make AttachmentLoadingTests more stable ( #1810 )
2017-10-10 12:28:19 +01:00
Alberto Arri
7af1f02a2d
Add a configuration option to set how often should a node check for new nodeinfos on disk ( #1851 )
...
* Add a configuration option to set how often should a node check for new NodeInfo files in additional-node-infos
2017-10-10 09:55:20 +01:00
cburlinchon
6166fa8358
Don't generate Kt classes ( #1798 )
2017-10-10 09:51:01 +01:00