Skip to content

Commit

Permalink
CORE-8695 Add new backchain batch size config
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovacsx committed Jul 6, 2023
1 parent b5cc437 commit e4c1ebe
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ private LedgerConfig() {
public static final String UTXO_TOKEN_PERIODIC_CHECK_BLOCK_SIZE = "tokens.periodCheckBlockSize";
public static final String UTXO_TOKEN_SEND_WAKEUP_MAX_RETRY_ATTEMPTS = "tokens.sendWakeUpMaxRetryAttempts";
public static final String UTXO_TOKEN_SEND_WAKEUP_MAX_RETRY_DELAY = "tokens.sendWakeUpMaxRetryDelay";
public static final String UTXO_BACKCHAIN_RESOLUTION_BATCH_SIZE = "backchain.batchsize";
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@
"default": 10
}
}
},
"backchain": {
"description": "Settings for backchain resolution",
"type": "object",
"default": {},
"properties": {
"batchsize": {
"description": "The size of each batch when doing a backchain resolution.",
"type": "integer",
"minimum": 0,
"default": 10
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@
<column name="update_actor" value="admin"/>
</insert>

<insert tableName="config">
<column name="section" value="corda.ledger.utxo"/>
<column name="config" value=""/>
<column name="schema_version_major" value="1"/>
<column name="schema_version_minor" value="0"/>
<column name="version" value="0"/>
<column name="is_deleted" value="false"/>
<column name="update_ts" valueDate="${now}"/>
<column name="update_actor" value="admin"/>
</insert>

<createTable tableName="config_audit">
<column name="change_number" type="SERIAL">
<constraints nullable="false"/>
Expand Down

0 comments on commit e4c1ebe

Please sign in to comment.