Shams Asari
a4be26a296
Removed unnecessary calls to MockNetwork.runNetwork (b/c there is no more P2P node registration) and removed redundant entries in cordappPackages
2017-11-06 21:28:20 +00:00
Shams Asari
3bb018a5ce
Removed the ability to manually start notary nodes from the driver and MockNetwork. Instead by default a single notary is automatically started. This can be customised at creation time of the driver and MockNetwork. This more accurately models the concept of network parameters in a CZ.
...
Also added helper methods to retrieve this default notary.
2017-11-05 22:55:33 +00:00
Shams Asari
d04e48740b
Introducing network parameters.
...
network-parameters file read in by the node at startup, of which only the list of notaries is used. For now, the driver and MockNetwork have been updated to require notaries to be started first. This is so that the same set of network parameters can be defined for all the nodes.
CN in the legal name is not longer disallowed since it's no longer reserved for distributed notary names.
Single-node notaries now only have one identity, their main identity. Nodes part of a cluster continue to have two.
(Based off Kasia's work)
2017-11-03 09:46:10 +00:00
Alberto Arri
5490465750
[CORDA-446] Remove entities from netmap cache & friends ( #1980 )
...
* Remove PersistentNetworkMapService and related classes. They were part of the old network map node code.
2017-11-03 09:28:52 +00:00
Michele Sollecito
d882f8871e
[CORDA-758]: Permissions are now checked for each RPC method. ( #1985 )
...
* Permissions are now checked for each RPC method.
* Fixed NodeMonitorModelTest
* Fixed IRSDemoTest
2017-11-02 15:09:49 +00:00
Alberto Arri
00e682a544
[CORDA-446] Clean up other mentions of network map node and logic ( #1974 )
...
* [CORDA-446] Clean up other mentions of network map node and logic
* Rename AbstractNetworkMapService to NetworkMapService and remove the empty NetworkMapService
* fix build
* fix artemismessaging tests
* pr comments
2017-11-01 14:25:48 +00:00
Katelyn Baker
86d273f2ef
Merge pull request #1955 from corda/feature/kat/refactorKryo
...
Refactor Kryo into sub module just like AMQP
2017-11-01 10:16:11 +00:00
Andrzej Cichocki
6b2b663ab3
CORDA-716 Retire MockNetwork.Factory ( #1937 )
2017-10-31 17:10:37 +00:00
Katelyn Baker
d6adb83cd0
CORDA-756 - Refactor Kryo into sub module as per AMQP
2017-10-31 15:45:58 +00:00
Andrzej Cichocki
4b0b13dad4
CORDA-716 Retire TestDependencyInjectionBase ( #1939 )
2017-10-31 10:21:38 +00:00
Christian Sailer
3f43d8ad21
Add helper for checking whether to check checkpoints and unit test it.
2017-10-30 11:55:04 +00:00
Alberto Arri
9176fcb8e6
Remove for good network map service node ( #1942 )
...
* [CORDA-446] Kill network map registration and fix NodeBasedTest
2017-10-30 11:45:52 +00:00
Andrzej Cichocki
05d6fb91c7
Reinstate Simulation config overrides for notary. ( #1947 )
2017-10-30 11:41:53 +00:00
Shams Asari
cde1587ac7
Cleaned up devModeOptions
2017-10-28 13:26:06 +01:00
Christian Sailer
862b908dd9
Merge branch 'master' of https://github.com/corda/corda into christians_checkpoint_checker_thread
...
# Conflicts:
# node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt
# node/src/test/kotlin/net/corda/node/services/config/FullNodeConfigurationTest.kt
2017-10-27 15:33:00 +01:00
Christian Sailer
5b5a4bd2e4
Code rewiew: turn dev mode options into a data class
2017-10-27 15:13:00 +01:00
Alberto Arri
a0b9768be7
Retire FullNodeConfiguration ( #1954 )
...
* Retire FullNodeConfiguration
* Moved logic and tests for Artermis user names in RPCUserServiceImpl
2017-10-27 14:30:10 +01:00
Christian Sailer
5440594afd
Merge branch 'master' of https://github.com/corda/corda into christians_checkpoint_checker_thread
2017-10-27 14:14:09 +01:00
Alberto Arri
01f80fb187
remove outdated test ( #1949 )
2017-10-27 09:27:23 +01:00
Mike Hearn
d7e4aa1783
Add more formal support for observer/regulator nodes. This is a simplistic
...
approach which assumes a dedicated node for observers: states that are
reported to the node will appear in the database and update feeds as
normal. Apps that expect all updates to be relevant to themselves may
need adjusting if they run on an observer node too, but this is likely
to be rare.
2017-10-26 18:05:24 +02:00
Christian Sailer
0cbee046f9
Add extension method to check for flags devModeOptions, formatting
2017-10-26 14:36:24 +01:00
Christian Sailer
74595c65c9
Add optional debug options to config and allow to switch checkpointChecking off in dev mode
2017-10-26 14:03:16 +01:00
josecoll
5349d4f850
Standardisation of Public Keys in Schema entities. ( #68 ) ( #1936 )
...
* Standardisation of Public Keys in Schema entities. (#68 )
* Standardisation in usage of Public Keys in Schema entities.
Use PK Hash where optimal, otherwise use ByteArray/LOB representation of PK.
* Redundant after rebase.
* Use .encoded and Crypto.decode<Public|Private>Key(bytes) instead of Corda serialization.
* Optimize DBPartyAndCertificate entity to store and query on ownerKeyHash.
* Updated API stability check for schema attribute change.
2017-10-24 22:11:41 +01:00
Andrzej Cichocki
927924498b
Introduce MockNodeParameters/Args ( #1923 )
2017-10-24 11:58:32 +01:00
Katelyn Baker
70a7eb8bae
Merge pull request #1928 from corda/kat/amqp/amqpTestFix3
...
CORDA-435 - AMQP enablement fixes
2017-10-23 17:37:38 +01:00
Alberto Arri
b04368e36a
[CORDA-442] make MockNetwork not start a networkmap node ( #1908 )
...
* [CORDA-442] make MockNetwork not start a networkmap node
Now MockNetwork will put the appropriate NodeInfos inside each running node networkMapCache.
Tests relating to networkmap node starting and interaction have been removed since they where relaying on MockNetwork
2017-10-23 16:50:53 +01:00
Katelyn Baker
2463cbd416
CORDA-435 - AMQP enablement fixes
...
AMQP has different serialization rules than Kryo surrounding the way we
introspect objects to work out how to construct them
2017-10-23 16:40:09 +01:00
Katelyn Baker
b73020a014
Merge pull request #1924 from corda/kat/amqp/amqpTestFix2
...
CORDA-435 - AMQP serialisation cannot work with private vals
2017-10-23 16:24:44 +01:00
Katelyn Baker
303acf715f
CORDA-435 - AMQP serialisation cannot work with private vals
...
They won't be reported as properties by the introspector and thus we
will fail to find a constructor for them. This makes sense as we will be
unable to serialise an object whose members we cannot read
2017-10-23 15:08:30 +01:00
Patrick Kuo
01728e5a47
Network map service REST API wrapper ( #1907 )
...
* Network map client - WIP
* Java doc and doc for doc site
* remove javax.ws dependency
* NetworkParameter -> NetworkParameters
* move network map client to node
* Fix jetty test dependencies
* NetworkParameter -> NetworkParameters
* Address PR issues
* Address PR issues and unit test fix
* Address PR issues
2017-10-23 11:46:24 +01:00
Andras Slemmer
c66a84bfc6
Interface changes for multi-threading
2017-10-20 11:29:30 +01:00
Andrzej Cichocki
005ce349a7
* Retire MockServiceHubInternal ( #1909 )
...
* Introduce rigorousMock
* Add test-utils and node-driver to generated documentation
2017-10-20 10:06:53 +01:00
Andrzej Cichocki
12fa945077
CORDA-680 Update cordapp packages documentation ( #1901 )
...
* Introduce MockNetworkParameters
2017-10-19 15:06:51 +01:00
Andrzej Cichocki
dfd90701a0
CORDA-599 PersistentNetworkMapCache no longer circularly depends on SH ( #1652 )
2017-10-19 11:19:55 +01:00
Andrzej Cichocki
b2454c646c
Eliminate circular dependency of NodeSchedulerService on ServiceHub. ( #1891 )
2017-10-19 09:26:26 +01:00
Andrzej Cichocki
b4c53647cd
CORDA-530 Don't soft-lock non-fungible states ( #1794 )
...
* Don't run unlock query if nothing was locked
* Constructors should not have side-effects
2017-10-18 13:40:57 +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
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
Andrzej Cichocki
ce5b7de718
CORDA-530 Unduplicate code ( #1791 )
2017-10-13 12:15:52 +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
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
Rick Parker
3fdc69e541
Fix coin selection with Flow-friendly sleep ( #1847 )
2017-10-11 14:33:20 +01:00
Andrzej Cichocki
4ee250a19b
Retire setCordappPackages. ( #1860 )
2017-10-11 10:35:21 +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
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
Alberto Arri
22b1dead32
Remove functions with spaces in their name ( #1850 )
...
Remove all the Kotlin functions with spaces in them since the Android doesn't support them.
See https://github.com/corda/corda/issues/1730 for a more in-depth discussion.
2017-10-10 09:32:43 +01:00
Tommy Lillehagen
e1458a40cb
Revert code transformation; use of deprecated method
2017-10-09 15:26:40 +01:00
Tommy Lillehagen
14f959b4af
Code clean-up run
2017-10-09 15:26:40 +01:00
Tommy Lillehagen
cb9e27a84a
Reformat files in node
2017-10-09 15:26:39 +01:00
Andrzej Cichocki
f83f1b7010
CORDA-599 Fix circular dependency between vault and SH ( #1630 )
...
Fix circular dependency between the 2 vault objects and SH.
2017-10-09 12:49:07 +01:00