[fix] #1277 G1-Test is stuck because of wrong generated blocks (chained transactions)
Compare changes
+ 11
− 5
@@ -9,6 +9,7 @@ import {CommonConstants} from "../common-libs/constants"
@@ -9,6 +9,7 @@ import {CommonConstants} from "../common-libs/constants"
@@ -80,7 +81,7 @@ export const GLOBAL_RULES_FUNCTIONS = {
@@ -80,7 +81,7 @@ export const GLOBAL_RULES_FUNCTIONS = {
checkSourcesAvailability: async (block:{ transactions:TransactionDTO[], medianTime: number }, conf:ConfDTO, dal:FileDAL, alsoCheckPendingTransactions:boolean) => {
@@ -98,12 +99,12 @@ export const GLOBAL_RULES_FUNCTIONS = {
@@ -98,12 +99,12 @@ export const GLOBAL_RULES_FUNCTIONS = {
logger.debug('Source %s:%s:%s:%s = %s', src.amount, src.base, src.identifier, src.pos, dbSrc && dbSrc.consumed);
// For chained transactions which are checked on sandbox submission, we accept them if there is already
@@ -193,10 +194,15 @@ export const GLOBAL_RULES_HELPERS = {
@@ -193,10 +194,15 @@ export const GLOBAL_RULES_HELPERS = {
checkSingleTransaction: (tx:TransactionDTO, block:{ medianTime: number }, conf:ConfDTO, dal:FileDAL, alsoCheckPendingTransactions:boolean = false) => GLOBAL_RULES_FUNCTIONS.checkSourcesAvailability({