Skip to content
Snippets Groups Projects
Unverified Commit 065e44a5 authored by Éloïs's avatar Éloïs
Browse files

[fix] default TransactionDepth is zero

parent b344841c
No related branches found
No related tags found
No related merge requests found
...@@ -385,7 +385,7 @@ export const LOCAL_RULES_FUNCTIONS = { ...@@ -385,7 +385,7 @@ export const LOCAL_RULES_FUNCTIONS = {
const sindex = Indexer.sindex(index) const sindex = Indexer.sindex(index)
const max = getMaxTransactionDepth(sindex) 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) { if (max > allowedMax) {
throw "The maximum transaction chaining length per block is " + CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH throw "The maximum transaction chaining length per block is " + CommonConstants.BLOCK_MAX_TX_CHAINING_DEPTH
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment