Commit Graph

7493 Commits

Author SHA1 Message Date
59719a8a61 [CORDA-2420] - Make boundary of public API explicit in docs (#4735) 2019-02-12 10:04:16 +00:00
ca49c5e94d Docs: fix various issues for C4.
- Delete information about hash->signature constraint migration. That
  won't work for C4.0
- Rewrite parts of the api-contract-constraints.rst file to fix grammar
  problems and reduce the weight of the page. Some detail isn't really
  necessary at this point in the docs.
- Mention more things in the upgrade notes.
2019-02-11 20:02:06 +01:00
64cbe9f904 Merge pull request #4734 from corda/mike-simplify-migration
CORDA-2545: Merge PNO check rework to master.
2019-02-11 19:04:30 +01:00
f541843eff Temporary workaround for a bug that was exposed by a refactoring. Will follow up with a fix in another PR. 2019-02-11 17:10:50 +01:00
55f4071050 Make API checker happy 2019-02-11 17:10:50 +01:00
02645f7b9e Rework package namespace ownership check to verify every package of every class file.
Previous implementation was in LedgerTransaction and focused only on contract classes,
but every package matters.

Also fixes some exception types and does misc refactorings.
2019-02-11 17:10:50 +01:00
b9ecc5243f Tell ProGuard to remove FlowLogic and ProgressTracker classes. 2019-02-11 17:10:50 +01:00
0a9f4c68ae Minor refactorings.
Take out a useless parameter from a method that was added to the public
API, document it. Add some comments explaining more about why we are
looking up attachment versions in WireTransaction.toLedgerTransaction.
2019-02-11 17:10:50 +01:00
5f70abfeca Merge pull request #4731 from corda/mike-update-coding-guidelines
Add a section to the coding guidelines about updating the docsite.
2019-02-11 16:59:08 +01:00
9581370a9c improve docker image and allow automatically restarting node after --initial-registration 2019-02-11 15:17:57 +00:00
7252c84a5a address review comments re: resusing variables 2019-02-11 15:17:57 +00:00
ebce04a8b1 add example network
add ability to specify RPC password during config generation
2019-02-11 15:17:57 +00:00
2074718e7d Add a section to the coding guidelines about updating the docsite. 2019-02-11 16:15:05 +01:00
18a1d93e6d Update UAT.md 2019-02-11 10:56:02 +00:00
329caa20b7 CORDA-2564: Ensure that corda-serialization uses @JvmDefault for interfaces. (#4725) 2019-02-08 17:20:40 +00:00
cdac97120a [CORDA-2547] Migrate table of SimpleNotaryService (#4722)
* CORDA-2547: WIP Migrate old notary schema correctly.

Modify liquibase scripts to rename the old committed state table instead of creating a new one.

* Rename liquibase change sets

* Change 3.3 baseline before Liquibase.

* Aligin with ENT, orginal node-notary.changelog-v1.xml moved to node-notary.changelog-v2.xml and it's compatible with ENT (which already has changes from v2).

* Aligin with ENT, orginal node-notary.changelog-v1.xml moved to node-notary.changelog-v2.xml and it's compatible with ENT (which already has changes from v2) - adding v2 to master file.

* Ensure setting up Liquibase on pre-existing pre-Liquibase database
2019-02-08 16:30:02 +00:00
f729453fee CORDA-2334 - Net Params non-downgrade verification in transaction resolution / building. (#4351)
* Add FetchParametersFlow

* No downgrade parameters in ResolveTransactionsFlow

Make sure that parameters in the transaction
graph are ordered (this is to prevent the downgrade attack, when the
malicious notary and participants sign transaction that shouldn't be
notarised otherwise). We ensure that by checking that epochs of network
parameters in the transaction chain are ordered.

* Addressed some minor items from RP review feedback.

* Refactoring following rebase from master.

* Address RP PR review comments (round 2)

* Addressed a couple of minor PR review points.

* Renaming of unit tests and cleanup.

* Changes discusses with RP to ensure Network Param checking is applied at txn verify time + resolve order checking gated on existence of tagged NPs in txn and associated minimum platform version.

* Do not fail on missing ServiceHub impl + return nothing if txn not NP tagged.

* Unify HistoricNetworkParametersStorage and
NetworkParametersStorageInternal

* SignedDataWithCert implements NamedByHash

* Cleanup

* Move parameters ordering check to signed transaction resolution

* Fixes after merge, address comments

* Address Andrius comments
2019-02-08 15:29:32 +00:00
db35f73bcc Remove old reference to publishing a single corda finance jar. (#4704) 2019-02-07 18:33:20 +00:00
0c33d2fd9d CORDA-2514 Constraints checking failures do not provide indication of cause (#4638) (#4688)
* Add logging to constraints checking to indicate reason of failure.

* Additional debug logging message.
2019-02-07 18:32:42 +00:00
49fb03bf6b Fix documentation issues (#4721) 2019-02-06 12:49:47 +00:00
0e770bbb85 Merge pull request #4705 from corda/cais-docs-cordapp-tutorial
Updating the docs for tutorial cordapp to reflect Spring Boot changes
2019-02-06 11:13:24 +00:00
0360a33e5c State pointers are always resolved, so the kdocs should reflect this. (#4716) 2019-02-06 09:52:11 +00:00
7866dde91b CORDA-2556: Refactor World City database into a library module. (#4718)
* Refactor World City database into a library module.
* Migrate CityDatabaseTest into worldmap module.
2019-02-05 15:29:26 +00:00
6cdd9f96b8 CORDA-2423 document draining requirements in flow state machines (#4707)
* CORDA-2423 document draining requirements in flow state machines

* Expand and move to warning block

* Add warning to hello-world-flow.rst
2019-02-05 14:19:08 +00:00
bb0ceda8d0 Addressing PR comments - added links to jarSigner and corda-gradle-plugins signing and explain which one to use. 2019-02-05 11:49:30 +00:00
bf2881ca29 Adding new page on UAT environment
We need to have an external page which talks about UAT, as agreed with marketing this should be on docs.corda.net rather than elsewhere. 

The idea is that this cannot be corda.network since UAT is part of R3, not the Foundation.
2019-02-04 09:46:29 +00:00
c667df9bec Port over ENT changes (#4706)
Port of commit 9b55ad2680
2019-02-01 18:10:10 +00:00
c39c61ecab CORDA-2467: Moved non-contract things out of finance-contracts and into finance-workflows (#4700)
This includes all of the cash selection logic, JSON support using jackson and a bunch of utilities which are not relevant to contract verification. The exception to this are Interpolator which has been moved to the IRS demo, and PhysicalLocationStructures.kt which is now in explorer.
2019-02-01 17:31:12 +00:00
5c38cb3aaf minor fixes including the splitting of finance jar into contracts and workflows 2019-02-01 16:14:16 +00:00
c7f4f6af7b Reverting change to one of the ports 2019-02-01 15:57:31 +00:00
0ff9235521 Removing all references to web/example as Spring serves up the page from the home page 2019-02-01 15:51:44 +00:00
93fcf1be5a Updating tutorial to reflect spring boot replacing legacy bundled web-server 2019-02-01 15:15:51 +00:00
deb66d1396 Refresh api-current.txt (#4702) 2019-02-01 12:57:20 +00:00
0a50d76ab1 DOCS - correct command docs for clear network map cache (#4677) 2019-01-31 17:12:32 +00:00
0632d275ed CORDA-2540 Adjust no overlap rule to avoid premature optimization (#4693)
Fix invalid optimization in AttachmentsClassLoader.
2019-01-31 17:59:01 +01:00
099a747ebf CORDA-2526 Allow for duplicate signed attachments in devMode (#4691)
* Allow for duplicate (contract class, version) signed attachments in devMode.

* Code clean-up.

* Fix compilation error in test code.

* Additional gating/warning and added Unit test for development mode behaviour.
2019-01-31 14:41:23 +00:00
12693ab175 RELEASE - Reflect newer kotlin version 2019-01-31 14:11:09 +00:00
e255ef38cf address review comments re: documentation 2019-01-31 08:12:34 +00:00
544d09ea18 update docs to reflect the removal of the bundled finance app 2019-01-31 08:12:34 +00:00
41c4016a83 remove bundled finance app 2019-01-31 08:12:34 +00:00
37eb93fa76 Tighten no overlap check. (#4690) 2019-01-30 22:01:18 +00:00
deba96dce9 ENT-2991 Deadlock between AppendOnlyPersistentMap and underlying database (#4676)
* Remove locks around database access in AppendOnlyPersistentMap and introduce
a unit test that checks that known deadlock scenarios of the old version
are avoided.

* Fix Deadlock unit test

* Add some extra latching to try and make timing less fragile.  Can never be perfect though.

* Review feedback, and some thread safety fixes.
2019-01-30 18:20:53 +00:00
91c2d75f31 Fix bug in verifier for has to signature constraints (auto-migration). (#4680) 2019-01-30 15:54:12 +00:00
fab3e113fb do not install documentation with textlive 2019-01-30 15:33:46 +00:00
b5d80e0c3c add --rm flag for the windows docs build 2019-01-30 15:33:46 +00:00
875d2eb02a run docs build as local user 2019-01-30 15:33:46 +00:00
1dcc1c6e05 fix issue with api docs 2019-01-30 15:33:46 +00:00
fe0cafd06e dockerize docs building 2019-01-30 15:33:46 +00:00
365471d9f4 CORDA-2531 State mappings are now also updated for new reference states. (#4681)
* State mappings are now also updated for new reference states.
Added a test to prove the above works.

* Addressed Rick's review comments.
2019-01-30 10:42:43 +00:00
7dc7313fb7 ENT-3000 Start pooling classpath scanning and related fixes (#4664)
* Start pooling classpath scanning

Quickly patch synchronisation of attachment class loader cache.  Needs a revisit but more complicated due to DJVM.

Annotate away for DJVM

Take ClassGraph utils into their own file so we can exclude for DJVM

Clean up a little

* Daemonize the threads

* Seems to be some concurrency problems with use of ClassGraph.  Using a mutex for now to work around.
2019-01-30 10:35:20 +00:00