@@ -1038,7 +1038,7 @@ loop:
1038
1038
log .Info ("Skipping L1 message" , "queueIndex" , queueIndex , "tx" , tx .Hash ().String (), "block" , w .current .header .Number , "reason" , "gas limit exceeded" )
1039
1039
w .current .nextL1MsgIndex = queueIndex + 1
1040
1040
txs .Shift ()
1041
- if false {
1041
+ if w . config . StoreSkippedTxTraces {
1042
1042
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , traces , "gas limit exceeded" , w .current .header .Number .Uint64 (), nil )
1043
1043
} else {
1044
1044
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , nil , "gas limit exceeded" , w .current .header .Number .Uint64 (), nil )
@@ -1119,7 +1119,7 @@ loop:
1119
1119
circuitCapacityReached = false
1120
1120
1121
1121
// Store skipped transaction in local db
1122
- if false {
1122
+ if w . config . StoreSkippedTxTraces {
1123
1123
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , traces , "row consumption overflow" , w .current .header .Number .Uint64 (), nil )
1124
1124
} else {
1125
1125
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , nil , "row consumption overflow" , w .current .header .Number .Uint64 (), nil )
@@ -1134,7 +1134,7 @@ loop:
1134
1134
log .Info ("Skipping L1 message" , "queueIndex" , queueIndex , "tx" , tx .Hash ().String (), "block" , w .current .header .Number , "reason" , "unknown row consumption error" )
1135
1135
w .current .nextL1MsgIndex = queueIndex + 1
1136
1136
// TODO: propagate more info about the error from CCC
1137
- if false {
1137
+ if w . config . StoreSkippedTxTraces {
1138
1138
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , traces , "unknown circuit capacity checker error" , w .current .header .Number .Uint64 (), nil )
1139
1139
} else {
1140
1140
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , nil , "unknown circuit capacity checker error" , w .current .header .Number .Uint64 (), nil )
@@ -1152,7 +1152,7 @@ loop:
1152
1152
log .Trace ("Unknown circuit capacity checker error for L2MessageTx" , "tx" , tx .Hash ().String ())
1153
1153
log .Info ("Skipping L2 message" , "tx" , tx .Hash ().String (), "block" , w .current .header .Number , "reason" , "unknown row consumption error" )
1154
1154
// TODO: propagate more info about the error from CCC
1155
- if false {
1155
+ if w . config . StoreSkippedTxTraces {
1156
1156
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , traces , "unknown circuit capacity checker error" , w .current .header .Number .Uint64 (), nil )
1157
1157
} else {
1158
1158
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , nil , "unknown circuit capacity checker error" , w .current .header .Number .Uint64 (), nil )
@@ -1174,7 +1174,7 @@ loop:
1174
1174
queueIndex := tx .AsL1MessageTx ().QueueIndex
1175
1175
log .Info ("Skipping L1 message" , "queueIndex" , queueIndex , "tx" , tx .Hash ().String (), "block" , w .current .header .Number , "reason" , "strange error" , "err" , err )
1176
1176
w .current .nextL1MsgIndex = queueIndex + 1
1177
- if false {
1177
+ if w . config . StoreSkippedTxTraces {
1178
1178
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , traces , fmt .Sprintf ("strange error: %v" , err ), w .current .header .Number .Uint64 (), nil )
1179
1179
} else {
1180
1180
rawdb .WriteSkippedTransaction (w .eth .ChainDb (), tx , nil , fmt .Sprintf ("strange error: %v" , err ), w .current .header .Number .Uint64 (), nil )
0 commit comments