@@ -46,7 +46,7 @@ func hasKvConflict(slotDB *ParallelStateDB, addr common.Address, key common.Hash
46
46
}
47
47
if valUnconfirm , ok := slotDB .getKVFromUnconfirmedDB (addr , key ); ok {
48
48
if ! bytes .Equal (val .Bytes (), valUnconfirm .Bytes ()) {
49
- log .Warn ("IsSlotDBReadsValid KV read is invalid in unconfirmed" , "addr" , addr ,
49
+ log .Debug ("IsSlotDBReadsValid KV read is invalid in unconfirmed" , "addr" , addr ,
50
50
"valSlot" , val , "valUnconfirm" , valUnconfirm ,
51
51
"SlotIndex" , slotDB .parallel .SlotIndex ,
52
52
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex )
@@ -57,7 +57,7 @@ func hasKvConflict(slotDB *ParallelStateDB, addr common.Address, key common.Hash
57
57
valMain := mainDB .GetStateNoUpdate (addr , key )
58
58
59
59
if ! bytes .Equal (val .Bytes (), valMain .Bytes ()) {
60
- log .Warn ("hasKvConflict is invalid" , "addr" , addr ,
60
+ log .Debug ("hasKvConflict is invalid" , "addr" , addr ,
61
61
"key" , key , "valSlot" , val ,
62
62
"valMain" , valMain , "SlotIndex" , slotDB .parallel .SlotIndex ,
63
63
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex ,
@@ -1288,7 +1288,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1288
1288
}
1289
1289
if nonceUnconfirm , ok := slotDB .getNonceFromUnconfirmedDB (addr ); ok {
1290
1290
if nonceSlot != nonceUnconfirm {
1291
- log .Warn ("IsSlotDBReadsValid nonce read is invalid in unconfirmed" , "addr" , addr ,
1291
+ log .Debug ("IsSlotDBReadsValid nonce read is invalid in unconfirmed" , "addr" , addr ,
1292
1292
"nonceSlot" , nonceSlot , "nonceUnconfirm" , nonceUnconfirm , "SlotIndex" , slotDB .parallel .SlotIndex ,
1293
1293
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex )
1294
1294
return false
@@ -1301,7 +1301,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1301
1301
nonceMain = mainObj .Nonce ()
1302
1302
}
1303
1303
if nonceSlot != nonceMain {
1304
- log .Warn ("IsSlotDBReadsValid nonce read is invalid" , "addr" , addr ,
1304
+ log .Debug ("IsSlotDBReadsValid nonce read is invalid" , "addr" , addr ,
1305
1305
"nonceSlot" , nonceSlot , "nonceMain" , nonceMain , "SlotIndex" , slotDB .parallel .SlotIndex ,
1306
1306
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex ,
1307
1307
"mainIndex" , mainDB .txIndex )
@@ -1331,7 +1331,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1331
1331
}
1332
1332
1333
1333
if balanceSlot .Cmp (balanceMain ) != 0 {
1334
- log .Warn ("IsSlotDBReadsValid balance read is invalid" , "addr" , addr ,
1334
+ log .Debug ("IsSlotDBReadsValid balance read is invalid" , "addr" , addr ,
1335
1335
"balanceSlot" , balanceSlot , "balanceMain" , balanceMain , "SlotIndex" , slotDB .parallel .SlotIndex ,
1336
1336
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex ,
1337
1337
"mainIndex" , mainDB .txIndex )
@@ -1422,7 +1422,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1422
1422
codeMain = object .Code ()
1423
1423
}
1424
1424
if ! bytes .Equal (codeSlot , codeMain ) {
1425
- log .Warn ("IsSlotDBReadsValid code read is invalid" , "addr" , addr ,
1425
+ log .Debug ("IsSlotDBReadsValid code read is invalid" , "addr" , addr ,
1426
1426
"len codeSlot" , len (codeSlot ), "len codeMain" , len (codeMain ), "SlotIndex" , slotDB .parallel .SlotIndex ,
1427
1427
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex ,
1428
1428
"mainIndex" , mainDB .txIndex )
@@ -1437,7 +1437,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1437
1437
codeHashMain = common .BytesToHash (object .CodeHash ())
1438
1438
}
1439
1439
if ! bytes .Equal (codeHashSlot .Bytes (), codeHashMain .Bytes ()) {
1440
- log .Warn ("IsSlotDBReadsValid codehash read is invalid" , "addr" , addr ,
1440
+ log .Debug ("IsSlotDBReadsValid codehash read is invalid" , "addr" , addr ,
1441
1441
"codeHashSlot" , codeHashSlot , "codeHashMain" , codeHashMain , "SlotIndex" , slotDB .parallel .SlotIndex ,
1442
1442
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex , "mainIndex" , mainDB .txIndex )
1443
1443
return false
@@ -1450,7 +1450,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1450
1450
stateMain = true // addr exist in main DB
1451
1451
}
1452
1452
if stateSlot != stateMain {
1453
- log .Warn ("IsSlotDBReadsValid addrState read invalid(true: exist, false: not exist)" ,
1453
+ log .Debug ("IsSlotDBReadsValid addrState read invalid(true: exist, false: not exist)" ,
1454
1454
"addr" , addr , "stateSlot" , stateSlot , "stateMain" , stateMain ,
1455
1455
"SlotIndex" , slotDB .parallel .SlotIndex ,
1456
1456
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex , "mainIndex" , mainDB .txIndex )
@@ -1461,7 +1461,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1461
1461
for addr , destructRead := range slotDB .parallel .addrSnapDestructsReadsInSlot {
1462
1462
mainObj := mainDB .getDeletedStateObjectNoUpdate (addr )
1463
1463
if mainObj == nil {
1464
- log .Warn ("IsSlotDBReadsValid snapshot destructs read invalid, address should exist" ,
1464
+ log .Debug ("IsSlotDBReadsValid snapshot destructs read invalid, address should exist" ,
1465
1465
"addr" , addr , "destruct" , destructRead ,
1466
1466
"SlotIndex" , slotDB .parallel .SlotIndex ,
1467
1467
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex )
@@ -1471,7 +1471,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
1471
1471
_ , destructMain := mainDB .snapDestructs [addr ] // addr not exist
1472
1472
slotDB .snapParallelLock .RUnlock ()
1473
1473
if destructRead != destructMain && addr .Hex () != "0x0000000000000000000000000000000000000001" {
1474
- log .Warn ("IsSlotDBReadsValid snapshot destructs read invalid" ,
1474
+ log .Debug ("IsSlotDBReadsValid snapshot destructs read invalid" ,
1475
1475
"addr" , addr , "destructRead" , destructRead , "destructMain" , destructMain ,
1476
1476
"SlotIndex" , slotDB .parallel .SlotIndex ,
1477
1477
"txIndex" , slotDB .txIndex , "baseTxIndex" , slotDB .parallel .baseTxIndex ,
0 commit comments