Skip to content
Snippets Groups Projects

Resolve "default TransactionDepth must be zero"

Merged Éloïs requested to merge 1260-default-transactiondepth-must-be-zero into 1.6
2 files
+ 7
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -385,7 +385,7 @@ export const LOCAL_RULES_FUNCTIONS = {
const sindex = Indexer.sindex(index)
const max = getMaxTransactionDepth(sindex)
//
const allowedMax = block.medianTime > 1519862400 ? CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH : 1
const allowedMax = block.medianTime > 1519862400 ? CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH : 0
if (max > allowedMax) {
throw "The maximum transaction chaining length per block is " + CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH
}
Loading