From 0ecc4a2c97be97a4234053d1a64dd312b0c4813c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89lo=C3=AFs?= <elois@ifee.fr>
Date: Thu, 25 Jan 2018 12:57:47 +0000
Subject: [PATCH] Revert "[fix] default TransactionDepth is zero"

This reverts commit 065e44a59a830fb1558af364f74e64368c2c48fb
---
 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 93b8e4aa1..1ce1ebd17 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 : 0
+    const allowedMax = block.medianTime > 1519862400 ? CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH : 1
     if (max > allowedMax) {
       throw "The maximum transaction chaining length per block is " + CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH
     }
-- 
GitLab