From 065e44a59a830fb1558af364f74e64368c2c48fb Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Wed, 24 Jan 2018 23:02:22 +0100 Subject: [PATCH] [fix] default TransactionDepth is zero --- app/lib/rules/local_rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/rules/local_rules.ts b/app/lib/rules/local_rules.ts index 1ce1ebd17..93b8e4aa1 100644 --- a/app/lib/rules/local_rules.ts +++ b/app/lib/rules/local_rules.ts @@ -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 } -- GitLab