tudor.malene@gmail.com
7b86c2c3a3
Merge remote-tracking branch 'private/master' into tudor_os_merge_23_10
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/contracts/BelongsToContract.kt
# core/src/main/kotlin/net/corda/core/contracts/TransactionState.kt
# core/src/main/kotlin/net/corda/core/transactions/LedgerTransaction.kt
# core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt
# core/src/main/kotlin/net/corda/core/utilities/KotlinUtils.kt
# core/src/test/kotlin/net/corda/core/internal/JarSignatureCollectorTest.kt
# node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
# node/src/main/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoader.kt
# node/src/test/kotlin/net/corda/node/services/persistence/NodeAttachmentServiceTest.kt
# testing/test-utils/src/main/kotlin/net/corda/testing/dsl/TransactionDSLInterpreter.kt
2018-10-23 10:29:43 +01:00
Chris Rankin
430c4bcf83
Merge commit '47068e6b7ad0afb3ed8df61a429470f19331b7b5' into chrisr3-os-merf
...
Conflicts:
docs/source/index.rst
finance/build.gradle
finance/src/integration-test/kotlin/net/corda/finance/flows/test/CashConfigDataFlowTest.kt
node/src/test/java/net/corda/node/services/vault/VaultQueryJavaTests.java
samples/simm-valuation-demo/build.gradle
2018-10-16 12:07:55 +01:00
Florian Friemel
47068e6b7a
[CORDA-2077] Use latest gradle plugin version (4.0.32), set target version in core and sample CorDapps ( #4038 )
...
* Upgrade gradle plugin; add target version attribute to finance and sample cordapps.
* Remove '-SNAPSHOT' from gradlePluginsVersion.
* Fix naming.
* Update docs.
* Respond to feedback.
* Fix irs demo
* Fix more samples
* Fix more samples
* Fix deployNodes
* Fix deployNodes
* more fixes
* fix simm valuation
* more fixes
* more fixes
* more fixes
* more fixes
* Publication should have *nothing* to do with cordformation and deployNodes.
Remove it! And if this exposes a bug then "so be it".
* Disable CorDapp signing for Cordapp Configuration and Network Verifier.
* Disable CorDapp signing for SIMM Valuation Demo.
* Remove remaining publishing nonsense from samples.
* Workarounds fpr cordapp-configuration, network-verifier and simm-valuation-demo:
JarSigner rejects jars with duplicates inside, so remove them.
* Upgrade to Gradle plugin 4.0.32 and reenable CorDapp signing for samples.
2018-10-15 21:11:52 +01:00
Chris Rankin
2248f54f9f
CORDA-2096: Migrate finance test classes into .test sub-packages. ( #4079 )
2018-10-15 19:51:28 +01:00
szymonsztuka
89886ce194
Restore separate enterprise implementation of cash selection for SQL server ( #1421 )
...
Create Enterprise version of CashSelectionSQLServerImpl and copy the content of CashSelectionSQLServerImpl as of 0c8c914 commit (with relevancy_status added and no copyrights).
The commit a28767343222ab5b7afdb1b546f6204fcaa69103 (OS--> ENT merge) replaced the original enterprise code an community independent version (they had filename in common only). To avoid this clash the original enterprise implementation will be now in EnterpriseCashSelectionSQLServerImpl (and is the default one for ServiceLoader) and CashSelectionSQLServerImpl remains an empty placeholder in Enterprise.
2018-10-11 15:04:48 +01:00
Anthony Keenan
a6fd2ba903
Merge remote-tracking branch 'open/master' into anthonyk-os-merge-20181009
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt
# node/src/main/kotlin/net/corda/node/serialization/kryo/KryoCheckpointSerializer.kt
2018-10-09 16:15:59 +01:00
Dominic Fox
b6f2532ce6
Corda 1922 serialize states with calculated values ( #3938 )
...
* Introduce SerializeForCarpenter annotation
* Apply SerializableComputedProperty annotation to Cash.exitKeys, fix bugs
* info -> trace
* Remove annotation from FungibleAsset, as we do not know whether all implementing classes will provide the property as a calculated value
* Remove redundant import
* Explicit lambda params
* Restore explicit import for Enum valueOf
* Moving and rescoping
* More meaningful error message
* Add java test and documentation
* Fix accidentally broken unit test
* Ignore superclass annotation if property not calculated in implementing class
* Exclude calculated properties from Jackson serialisation
* Fix broken test
2018-10-09 14:54:31 +01:00
tudor.malene@gmail.com
40825fef99
Merge branch 'tudor_merge_os_master' into feature/ENT-2222/constraints_propagation_private
...
# Conflicts:
# node/src/main/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoader.kt
# testing/test-utils/src/main/kotlin/net/corda/testing/internal/MockCordappProvider.kt
2018-10-02 16:10:19 +01:00
tudor.malene@gmail.com
063efe0c6d
Merge branch 'master' into tudor_merge_os_master
2018-10-02 15:50:20 +01:00
Tudor Malene
f96a59932c
ENT-2222 Constraints propagation
...
ENT-2222 Fix tests
ENT-2222 Fix tests
ENT-2222 Add ledger transaction verification logic
ENT-2222 Fixed IRS test
ENT-2222 Fixed IRS test
ENT-2222 Fixed unit test
ENT-2222 Better kdocs
ENT-2222 Support for reference states
ENT-2222 Fix support for reference states
ENT-2222 Revert wrong change
ENT-2222 Fix Kdoc
ENT-2222 Fix Kdoc
ENT-2222 Better docs
ENT-2222 Address code review comments
ENT-2222 Fix test
ENT-2222 Fix rebase
ENT-2222 Add documentation around constraint propagation
ENT-2222 Add tests for contract propagation
ENT-2222 Add Signature Constraints propagation - first draft
ENT-2222 fix tests
ENT-2222 more tests
ENT-2222 unseal the TransactionVerificationException
ENT-2222 unseal the TransactionVerificationException
ENT-2222 more docs
ENT-2222 address code review comments
ENT-2222 address code review comments
ENT-2222 re-implement transition logic
ENT-2222 better comments and checks
ENT-2222 Fix tests
ENT-2222 merge fixes
2018-09-28 13:38:35 +01:00
szymonsztuka
1c681ad29a
Oracle cash selection, follow change filed name (is_modifiable -> relevancy_status)
2018-09-20 16:45:18 +01:00
szymonsztuka
dc25fc28b7
Merge remote-tracking branch 'remotes/open/master' into corda/os-merge-20-09-2018
...
# Conflicts:
# core-deterministic/build.gradle
# core/src/test/kotlin/net/corda/core/utilities/KotlinUtilsTest.kt
# node/src/integration-test/kotlin/net/corda/node/BootTests.kt
# node/src/integration-test/kotlin/net/corda/node/flows/AsymmetricCorDappsTests.kt
# node/src/integration-test/kotlin/net/corda/node/modes/draining/P2PFlowsDrainingModeTest.kt
# node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt
# node/src/main/kotlin/net/corda/node/serialization/kryo/Kryo.kt
# node/src/main/kotlin/net/corda/node/serialization/kryo/KryoSerializationScheme.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/InternalTestUtils.kt
2018-09-20 16:39:34 +01:00
Roger Willis
c4d86b1b26
CORDA-1999 Changed isRelevant to relevancyStatus. ( #3966 )
...
* Changed isRelevant to relevancyStatus.
* Fix cash selection from breaking.
* Fixed non-backwards compatible API change.
* Updated schema migration changelog.
* Updated comment.
2018-09-19 15:50:39 +01:00
Shams Asari
725441b39c
Minor changes to bring in-sync with OS ( #1390 )
2018-09-13 12:53:06 +01:00
Shams Asari
445ffc8404
Merge remote-tracking branch 'open/master' into os-merge-90a7dd2
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/crypto/internal/ProviderMap.kt
# core/src/main/kotlin/net/corda/core/messaging/CordaRPCOps.kt
# core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt
# finance/src/main/resources/migration/cash.changelog-master.xml
# finance/src/main/resources/migration/commercial-paper.changelog-master.xml
# finance/src/test/kotlin/net/corda/finance/flows/CashIssueFlowTests.kt
# node/src/integration-test/kotlin/net/corda/node/flows/FlowRetryTest.kt
# node/src/integration-test/kotlin/net/corda/node/modes/draining/P2PFlowsDrainingModeTest.kt
# node/src/integration-test/kotlin/net/corda/node/services/statemachine/HardRestartTest.kt
# node/src/integration-test/kotlin/net/corda/services/messaging/P2PMessagingTest.kt
# node/src/main/kotlin/net/corda/node/Corda.kt
# node/src/main/kotlin/net/corda/node/services/keys/PersistentKeyManagementService.kt
# node/src/main/kotlin/net/corda/node/services/persistence/DBCheckpointStorage.kt
2018-09-12 11:37:11 +01:00
Shams Asari
ca5d88e65a
Minor changes made in ENT which should have been ported over ( #3932 )
2018-09-12 11:26:37 +01:00
Shams Asari
8e4547c811
Merge remote-tracking branch 'open/master' into os-merge-d56a80d
...
# Conflicts:
# core/src/main/kotlin/net/corda/core/internal/cordapp/CordappImpl.kt
# finance/build.gradle
# node/src/integration-test/kotlin/net/corda/node/services/messaging/ArtemisMessagingTest.kt
# node/src/integration-test/kotlin/net/corda/node/services/network/PersistentNetworkMapCacheTest.kt
# node/src/main/kotlin/net/corda/node/VersionInfo.kt
# node/src/main/kotlin/net/corda/node/internal/Node.kt
# node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt
# node/src/main/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoader.kt
2018-09-10 11:03:58 +01:00
Shams Asari
83e66d542d
Syncing Cordapp info code from ENT so that ENT-1731 is fully ported ( #3914 )
...
Also, Cordapp.Info has been made internal as it's not used in the public API
2018-09-10 10:43:00 +01:00
Shams Asari
11e2bef240
ENT-2473: Removed copyright headers ( #1364 )
2018-09-03 16:38:52 +01:00
Dominic Fox
f061235cc8
Resolve merge conflict
2018-08-30 10:47:56 +01:00
Dominic Fox
7ee946b98f
ENT-2320 Introduce BelongsToContract annotation ( #1 )
...
* ENT-2320 Introduce BelongsToContract annotation
* Update kdoc
* Eliminate duplicate warnings
2018-08-30 10:02:18 +01:00
Dominic Fox
6cb4310f92
ENT-2320 Introduce annotation to link state classes and contract classes ( #1336 )
...
* Introduce and check @BelongsToContract annotation
* Fix broken ObligationTests
* TransactionContractConflictException inherits from TransactionVerificationException
* Really fix broken ObligationTests
* Convert fun to val
* Update kdoc on BelongsToContract, simplify contract checking
* Warn in TransactionBuilder if ContractState has no owning contract
* Fix failing tests
* Unseal TransactionVerificationException
* Make contract parameter of TransactionState optional
* Replace exception with a warning for now
* Update api-current to permit @BelongsToContract annotation to be added
* cosmetic tweaks
* Throw IllegalArgumentException, not NPE
* Throw IllegalArgumentException, not NPE
2018-08-28 11:38:33 +01:00
josecoll
36bfe268af
Revert back to using "relevancy" as "modifiable" states are not permissible by definition on an immutable ledger. ( #3847 )
2018-08-28 11:04:40 +02:00
szymonsztuka
487cad7d06
CORDA-1471 Database schema setup for internal tables via Liquibase ( #3815 )
...
Internal tables (the tables from node and finance modules) are now tracked /created by Liquibase script.
Tables backing MappedSchemma in Cordapps are created by Hibernate (as before).
The PR scope added Liquibase library, setup code SchemaMigration and XML scripts and from Enterprise.
For existing database installation - the node will auto-upgrade to use Liquibase.
Method migrateOlderDatabaseToUseLiquibase checks for any 3.X existing Corda database to upgrade database to use Liquibase. When the existing database without Liquibase integral tables is detected, the node (at startup) will create Liquibase tracking tables and fill them with all migration scripts (marked as done), this ensure the database will look as it would use Liquibase from the beginning.
The database changes gradually introduced by the subsequent 3.X releases (3.1, 3.2) are conditionally run by Liquibase.
2018-08-23 16:30:02 +01:00
Rick Parker
79909a5ea9
ENT-2430 Swap over output_index and transaction_id in database indexes ( #1354 )
...
(cherry picked from commit 2d33ba3)
2018-08-23 16:24:56 +01:00
szymonsztuka
32a4a8712a
Fix "isRelevant" functionality - fix is_modifiable column condition in cash selection.
2018-08-22 13:38:17 +01:00
szymonsztuka
8b336d99a3
Fix "isRelevant" functionality - addes/fixed is_modifiable column in cash selection. ( #1348 )
2018-08-22 13:10:15 +01:00
Chris Rankin
a287673432
Merge commit 'ff62df8d5a0ab9eabfe919b65a8c73baa3dca7f3' into chrisr3-os-merge
...
Conflicts:
finance/src/main/kotlin/net/corda/finance/contracts/asset/cash/selection/CashSelectionSQLServerImpl.kt
node/src/main/kotlin/net/corda/node/NodeArgsParser.kt
node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt
node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt
2018-08-20 15:46:20 +01:00
Roger Willis
b7867c3bcb
* Added "isRelevant" functionality to the vault. ( #3789 )
...
* * Added "isRelevant" functionality to the vault.
* * Changed "isRelevant" to "isParticipant" as this makes more sense in the context of Corda.
* Minor tweak to "isParticipant" method in NodeVaultService.
* Fixed API break and broken JAva tests.
* * Addressed PR comments from Jose.
* Changed all mentions of "relevant" and "participant" to "modifiable".
* Made the default behaviour of vault queries to return ALL states instead of just MODIFIABLE states as this is what always previously happened.
* Updated cash balance queries to only return MODIFIABLE states.
* * Updated cash selection and tryLockFungfibleStatesForSpending.
2018-08-17 13:39:05 +01:00
rick.parker
237c133804
Merge remote-tracking branch 'remotes/open/master' into parkri-os-merge-20180814-1
...
# Conflicts:
# CONTRIBUTORS.md
# constants.properties
# docs/source/index.rst
# docs/source/upgrading-cordapps.rst
# node/build.gradle
2018-08-14 11:26:52 +01:00
josecoll
166554a558
Fix duplicate index declaration. ( #3779 )
2018-08-13 17:31:35 +01:00
tudor.malene@gmail.com
159a3d25a5
Merge remote-tracking branch 'open/master' into tudor-os-merge-31-07
...
# Conflicts:
# finance/src/test/kotlin/net/corda/finance/contracts/CommercialPaperTests.kt
# finance/src/test/kotlin/net/corda/finance/contracts/asset/CashTests.kt
# finance/src/test/kotlin/net/corda/finance/flows/CashIssueFlowTests.kt
# node/src/test/kotlin/net/corda/node/services/persistence/HibernateConfigurationTest.kt
# node/src/test/kotlin/net/corda/node/services/schema/PersistentStateServiceTests.kt
# node/src/test/kotlin/net/corda/node/services/vault/VaultWithCashTest.kt
2018-07-31 17:53:43 +01:00
Tudor Malene
85caa9ee9d
Feature/corda 1847/remove hibernate observers ( #3696 )
...
* CORDA-1847 Fix hibernate observer issue
* CORDA-1847 Fix hibernate observer issue
* CORDA-1847 Fix hibernate observer issue
* CORDA-1847 Fix tests
* CORDA-1847 Fix tests
* CORDA-1847 Fix tests
2018-07-31 13:52:13 +01:00
Shams Asari
02fae5f385
Merge remote-tracking branch 'open/master' into os-merge-757181e
...
# Conflicts:
# node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt
# node/src/integration-test/kotlin/net/corda/node/services/messaging/ArtemisMessagingTest.kt
# node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
# node/src/main/kotlin/net/corda/node/internal/Node.kt
# node/src/main/kotlin/net/corda/node/services/messaging/P2PMessagingClient.kt
# node/src/main/kotlin/net/corda/node/services/vault/NodeVaultService.kt
# node/src/test/kotlin/net/corda/node/internal/NodeTest.kt
# node/src/test/kotlin/net/corda/node/services/identity/PersistentIdentityServiceTests.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/InternalMockNetwork.kt
2018-07-24 17:04:51 +01:00
cxyzhang0
2a5b7371d0
h2 cash selection query to support multiple onlyFromIssuerParties and… ( #3659 )
...
* h2 cash selection query to support multiple onlyFromIssuerParties and withIssuerRefs
* Rid of the compilation warnings
2018-07-24 10:09:37 +01:00
Michele Sollecito
a4d65dae22
Merge remote-tracking branch 'remotes/open/master' into merges/july-23-11-26
...
# Conflicts:
# confidential-identities/src/test/kotlin/net/corda/confidential/IdentitySyncFlowTests.kt
# docs/source/changelog.rst
# node/src/integration-test/kotlin/net/corda/node/NodePerformanceTests.kt
# node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt
# node/src/integration-test/kotlin/net/corda/node/services/BFTNotaryServiceTests.kt
# node/src/integration-test/kotlin/net/corda/node/services/BFTSMaRtTests.kt
# node/src/main/kotlin/net/corda/node/internal/Node.kt
# node/src/main/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoader.kt
# node/src/main/kotlin/net/corda/node/internal/cordapp/ManifestUtils.kt
# node/src/test/kotlin/net/corda/node/CordaRPCOpsImplTest.kt
# node/src/test/kotlin/net/corda/node/internal/cordapp/JarScanningCordappLoaderTest.kt
# node/src/test/kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt
# node/src/test/kotlin/net/corda/node/services/TimedFlowTests.kt
# settings.gradle
# testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/DriverDSLImpl.kt
# testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/NodeBasedTest.kt
2018-07-23 15:22:39 +01:00
Michele Sollecito
abc1d99eaa
[CORDA-1799]: Avoid generating test CorDapp JARs from each out of process node started by the driver ( #3641 )
2018-07-23 11:18:11 +01:00
cxyzhang0
d2446be69e
MSSQL support ( #3382 )
...
* MSSQL support
* changes per reviewer's comments; doc
* clean up
* CONTRIBUTORS.md
* minor change in comment
* another minor change in comment
* minor formatting
* Comments formatting per recommend style; contributors in alphabet order
* more comment formatting per coding style
* Change MSSQL to SQLServer in codes and comments
* Change MSSQL to SQLServer in doc
* Use generateSequence to build repeats of ?,?,...?
2018-07-20 16:25:15 +01:00
bpaunescu
33ce848e0c
OS-ENT merge
2018-07-16 10:00:16 +01:00
Shams Asari
1d91272698
Moved a bunch of tests that were in the integration bucket into unit ( #3576 )
2018-07-13 14:17:56 +01:00
rick.parker
4e81d26985
Merge remote-tracking branch 'remotes/open/master' into parkri-os-merge-20180713-1
2018-07-13 13:15:53 +01:00
Shams Asari
dc3bd8de7a
Retired BankOfCordaRPCClientTest as it's mostly duplicated by BankOfCordaCordformTest ( #3565 )
2018-07-13 10:37:51 +01:00
Shams Asari
f4a248f81f
Made CashSelectionTest a unit test by using mock network. ( #3570 )
...
Also includes adding a default value of emptyList() to InternalMockNetwork.cordappPackages
2018-07-12 11:55:51 +01:00
Thomas Schroeter
baabf8ceb9
Merge remote-tracking branch 'open-source/master' into thomas/os-merge-2018-07-11
...
Conflicts:
finance/src/integration-test/kotlin/net/corda/finance/flows/CashConfigDataFlowTest.kt
node/src/integration-test/kotlin/net/corda/node/BootTests.kt
node/src/integration-test/kotlin/net/corda/node/NodeUnloadHandlerTests.kt
node/src/integration-test/kotlin/net/corda/node/flows/FlowRetryTest.kt
tools/shell/src/integration-test/kotlin/net/corda/tools/shell/InteractiveShellIntegrationTest.kt
tools/shell/src/integration-test/kotlin/net/corda/tools/shell/SSHServerTest.kt
webserver/src/integration-test/kotlin/net/corda/webserver/WebserverDriverTests.kt
2018-07-11 14:56:03 +01:00
Shams Asari
2833ec2a88
Avoiding starting notaries in driver-based integration tests to speed them up ( #3544 )
2018-07-11 11:36:36 +01:00
szymonsztuka
852e12a971
Load only packages with schemas neede for this test - fixes issue with unrelated Hibernate entity (org.hibernate.MappingException: Could not determine type for: net.corda.core.schemas.GoodSchemaJavaV1$State, at table: TrickySchemaJavaV1$State ... )
2018-07-06 10:38:59 +01:00
Shams Asari
0c8c914882
Removing warnings
2018-07-05 15:45:28 +01:00
Tommy Lillehagen
d683df5753
CORDA-1711 - Remove dependency on PathUtilsKt in net.corda.core.internal ( #3493 )
2018-07-02 18:32:38 +01:00
Tommy Lillehagen
374b3d0a41
ENT-2040 - Remove dependency on PathUtilsKt in net.corda.core.internal ( #1141 )
2018-06-29 09:58:46 +01:00
Andrius Dagys
4281061c47
Merge remote-tracking branch 'open/master' into andrius/os-merge-06-27
2018-06-27 10:41:28 +01:00