Andrius Dagys
65a59f680b
Update integration tests to handle new transaction constraints
2017-08-29 17:05:13 +01:00
mkit
a84cd567d8
Removing Kt suffixed Java class ( #1344 )
2017-08-29 13:41:17 +01:00
Ross Nicoll
0fb4465c10
Move default session ID into messaging service
...
Move default session ID into messaging service to clean up the API. This means it no longer shows up in a Java class (ServiceHubInternalKt) as its only member, and is instead scoped into the service that actually uses the value. This does result in a MessagingService.Companion object (as MessagingService is an interface), however this is probably the most sensible solution.
2017-08-25 16:23:05 +01:00
szymonsztuka
bd48bdfd28
remove Exposed library and JDBCHashMap class
2017-08-24 13:28:26 +01:00
Matthew Nesbit
c86e78599f
Rename finance module to own package
...
Fixup after rebase
Correct bad merges
Fixup docs
Fix integration test
Correct doc references to finance
2017-08-22 13:25:31 +01:00
szymonsztuka
09adba8275
Hibernate session leak fix
...
* Hibernate session was not closed when JDBC connection was closed
* combined few instances of HibernateSession objects into one field inside CordaPersistence
* HibernateConfiguration improved caching of schema factories
2017-08-22 13:08:36 +01:00
Ross Nicoll
b76d036843
Change CashIssueFlow to always issue to ourselves
...
Change CashIssueFlow to always issue to ourselves, and require the cash is then moved in a separate payment
operation. This more closely models actual operation inside banks, and is a step towards making all move-like
operations go through a uniform verification process.
2017-08-15 22:32:30 +01:00
Shams Asari
62b26bcd89
Moved Currency stuff in ContractsDSL out of core and into finance
2017-08-15 18:08:02 +01:00
szymonsztuka
a6bf8e35dd
rewrite few services to use Hibernate
...
* DBTransactionMappingStorage
* DBTransactionStorage
* DBCheckpointStorage
* PersistentUniquenessProvider
* PersistentKeyManagementService
2017-08-14 15:06:06 +01:00
Shams Asari
008301c4e8
Introduced FlowLogic.getFlowContext which provides the flow version and app name of the other side.
2017-08-11 18:01:16 +01:00
Matthew Nesbit
af13371510
Move certificate builder code from core to node utilities.
...
Address PR comments
Fixup dead reference
2017-08-11 12:02:38 +01:00
Andrzej Cichocki
3a3ead2dfe
Remove ListenableFuture from core/main ( #1030 )
2017-08-07 14:31:24 +01:00
Patrick Kuo
56fda1e5b5
Replace data vending service with SendTransactionFlow ( #964 )
...
* WIP - Removed data Vending services, fixed all flow test
* * separated out extra data, extra data are sent after the SendTransactionFlow if required
* New SendProposalFlow for sending TradeProposal, which contains StateAndRef.
* WIP
* * removed TradeProposal interface.
* changed SendProposalFlow to SendStateAndRefFlow, same for receive side.
* fixup after rebase.
* * undo changes in .idea folder
* * remove unintended changes
* * Addressed PR issues
* * doc changes
* * addressed pr issues
* moved ResolveTransactionsFlow to internal
* changed FlowLogic<Unit> to FlowLogic<Void?> for java use case
* * addressed PR issues
* renamed DataVendingFlow in TestUtill to TestDataVendingFlow to avoid name confusion, and moved it to core/test
* * removed reference to ResolveTransactionsFlow
2017-08-04 11:26:31 +01:00
Shams Asari
4312dc0771
Resolved all non-deprecation warnings
2017-08-02 12:17:52 +01:00
szymonsztuka
7620874e5f
Szymon db confing ( #1141 )
...
database transaction isolation level and database initialisation are configurable
2017-07-31 16:36:34 +01:00
Shams Asari
4a600121cc
Removed deprecated methods in DataFeed and deprecated feed-based methods in CordaRPCOps
2017-07-31 15:11:00 +01:00
Andrius Dagys
4ca8b8d681
Remove type-specific transaction builder. Normal transactions should use TransactionBuilder and notary change transactions are created directly.
2017-07-31 14:31:17 +01:00
Michal Kit
818f8a5f77
Addressing review comments
2017-07-27 16:12:14 +01:00
Michal Kit
66d6c2b44e
Extending NetwokMapCache with a convenience method for by type service retrieval
2017-07-27 16:12:13 +01:00
Andrzej Cichocki
25be649f7b
Workaround BFT bug that causes redundant replicas to get stuck in startup ( #1100 )
2017-07-26 19:41:29 +01:00
Shams Asari
407b467f67
Moved the majority of the contents of Utils.kt into either InternalUtils.kt or KotlinUtils.kt.
...
What remains is being dealt with in another PR.
2017-07-24 19:25:56 +01:00
Rick Parker
fe9db6f1f7
Remove links to Kryo from serialization "clients" ( #1079 )
2017-07-21 14:23:05 +01:00
Shams Asari
e702025f62
Cleaned up TimeWindow and added a bit more docs.
2017-07-20 13:43:11 +01:00
Shams Asari
070f0c040e
Moved a bunch of stuff which shouldn't be public out of core.utilities and into core.internal
2017-07-19 14:09:03 +01:00
Patrick Kuo
264b9316e3
Store notaries's identity composite key in keystore ( #1036 )
...
* * Store composite key in keystore from file for notaries's identity.
* Some refactoring.
* * Addressed PR issues
* * Remove unintended format changes
* * Fixed failing test due to getting keys from wrong keystore
2017-07-19 11:14:48 +01:00
Shams Asari
561a329064
Moved the various extension methods for creating Durations from Utils.kt to KotlinUtils.kt
2017-07-18 10:26:53 +01:00
Shams Asari
195189070a
Moved the Path extension methods that were in Utils.kt into the internal package
2017-07-17 16:01:19 +01:00
Matthew Nesbit
7a06d941c4
Put Services.kt in clear files, so that at a glance people can see what public services there are.
...
Fix include
Correct doc links after code movement
2017-07-17 09:34:07 +01:00
Mike Hearn
a56540a3d6
Fix support for large attachments by de-batching tx/attachment fetch. This is a workaround until the upstream Artemis large message streaming bugs are fixed.
2017-07-14 18:21:33 +01:00
szymonsztuka
05327f3826
decouple Exposed ( #1028 )
...
Exposed library decoupled from transaction management and JDBC connection creation for Hibernate and ReQuery
2017-07-14 14:39:59 +01:00
Andrzej Cichocki
1996c39b9a
Disable the BFT tests. ( #1051 )
2017-07-14 14:06:59 +01:00
Shams Asari
a49baddd4b
Moved KeyStoreUtilities out of core and into node
2017-07-13 16:54:30 +01:00
Shams Asari
e93cdf29f8
Moved the core flows into net.corda.core.flows
2017-07-13 13:27:11 +01:00
Shams Asari
fa4577d236
Cleaned up NonEmptySet and expanded its usage in the codebase
2017-07-13 12:32:33 +01:00
Patrick Kuo
78ecff7933
Added composite key provider for storing composite keys in keystore ( #1006 )
...
* Add unit tests around decoding composite keys
(cherry picked from commit 9ccdd8e)
* Start writing a Composite signature scheme
(cherry picked from commit 72ac3a5)
* Composite key serialisation
* refactoring
* * Address PR issues
* * Address PR issues
* * Address PR issues
* * Address PR issues
* fix up after rebase
2017-07-12 12:13:29 +01:00
Shams Asari
7caee508ec
Refactored ErrorOr into Try, with Success and Failure data sub-classes, and moved it into core.utilities
2017-07-11 12:10:38 +01:00
Patrick Kuo
7e8de79848
Legal name validation for X500Name ( #983 )
...
* * Legal name validation for X500Name while loading from config file.
* * Removed unintended changes.
2017-07-11 12:09:30 +01:00
Andrzej Cichocki
365364ddd5
Re-enable BFT tests after porting away from NodeBasedTest ( #889 )
2017-07-10 09:30:28 +01:00
Shams Asari
fb0a043485
Moved dummy contracts to test-utils
2017-07-07 15:16:29 +01:00
Andrzej Cichocki
cefa14507a
Retire HostAndPort ( #962 )
...
* Don't attempt to parse a resolved InetSocketAddress toString
* A mock node isn't reachable via an address
2017-07-07 15:11:07 +01:00
Shams Asari
7822118835
Moved random63BitValue() to CryptoUtils
2017-07-07 12:19:55 +01:00
Shams Asari
8f1529b863
Moved ByteArrays.kt to core.utilities
2017-07-06 17:58:18 +01:00
Shams Asari
8fc76b3803
Moved VersionInfo out of core and into node
2017-07-06 14:31:43 +01:00
Shams Asari
2973755bc8
Moved TestConstants.kt from core into test-utils
2017-07-05 11:54:43 +01:00
Matthew Nesbit
3ef5c39633
Put test classes into clear namespaces, so that they don't pollute the API.
2017-07-05 09:14:22 +01:00
Shams Asari
46e23b7716
Clean up of ServiceHubInternal, including how it's created in AbstractNode
2017-07-03 17:05:36 +01:00
Andrzej Cichocki
e5395fe1b7
Enforce node death on failure to register with network map ( #905 )
...
* Give up polling when result future cancelled
2017-06-28 12:07:53 +01:00
Andrzej Cichocki
0aadc037ef
Make logging available in IntelliJ between gradle clean and assemble ( #929 )
...
* Enforce absence of node from client rpc smokeTest classpath
2017-06-28 09:54:09 +01:00
Katarzyna Streich
58da76c052
Network map redesign: Change field types in NodeInfo, move away messaging data from NodeInfo ( #921 )
...
* First stage of changing fields in NodeInfo.
Part of work related to NetworkMapService upgrade. Create slots for
multiple IP addresses and legalIdentities per node.
* NodeInfo stores HostAndPort.
Move information specific to messaging layer away from NodeInfo.
Only HostAndPort addresses are stored. Add peer name - peer handle
mapping to MockNetwork to reflect that change.
2017-06-27 18:14:51 +01:00
Andrzej Cichocki
37c918a8f5
BFT tests no longer use NodeBasedTest ( #917 )
...
* Move Raft config to the interface
* Inline method only used in 1 test
2017-06-27 11:49:19 +01:00