Contract code attachments is stating that the complete jar is attached to each transaction, however that is not the case.

Description

After discussing this topic with client, we arrived at the following documentation link:
https://docs.corda.net/writing-a-cordapp.html?highlight=contract%20attach#modules
It specifies quite clearly that contract jar files get attached to each transaction:
This is because each time a contract is used in a transaction, the entire JAR containing the contract's definition is attached to the transaction. This is to ensure that the exact same contract and state definitions are used when verifying this transaction at a later date. Because of this, you will want to keep this module, and therefore the resulting JAR file, as small as possible to reduce the size of your transactions and keep your node performant.

However, after validating this on #corda-tech-questions, it was revealed to be a false statement.
It is quite important to update this completely false statement to reflect the reality.
If a contract jar was attached to each transaction, that would have huge implications on network traffic throughput.

https://r3dlg.slack.com/archives/C2EMVPJT0/p1581613980347100

Activity

Show:
David Rapacchiale
April 22, 2020, 7:52 AM

FYI

Ivan Terziev
April 22, 2020, 8:02 AM

Is this a valid point for 4.4 only or does the change need back-ported to all previous versions?

Ivan Terziev
June 11, 2020, 7:03 AM

Hi , this task is related to the work you are doing under - assigning to you when you get a chance to fix this.

Ivan Terziev
September 17, 2020, 3:35 PM

Ivan Terziev
September 17, 2020, 3:41 PM

Removed statement from CE and OS pages for 4.4, 4.5, and 4.6

Assignee

Ivan Terziev

Reporter

Henrik Carlström

Labels

Sprint

None

Epic Link

None

Priority

Highest

Due Date

None

Engineering Teams

Docs Team

Affects versions

None

Ported to...

None

Story Points / Dev Days

0.5
Configure