-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tx simulator fix #3530
Tx simulator fix #3530
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3530 +/- ##
==========================================
- Coverage 73.88% 73.87% -0.02%
==========================================
Files 582 582
Lines 74585 74618 +33
==========================================
+ Hits 55108 55122 +14
- Misses 15073 15086 +13
- Partials 4404 4410 +6
Continue to review full report at Codecov.
|
@@ -189,6 +189,20 @@ | |||
MaxBatchSize = 100 | |||
MaxOpenFiles = 10 | |||
|
|||
[SmartContractsStorageSimulate] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SmartContractsStorageMock or SmartContractsStorageForTxSimulator instead SmartContractsStorageSimulate to each name here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -124,6 +124,7 @@ type Config struct { | |||
SmartContractsStorage StorageConfig | |||
SmartContractsStorageForSCQuery StorageConfig | |||
TrieEpochRootHashStorage StorageConfig | |||
SmartContractsStorageSimulate StorageConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SmartContractsStorageMock or SmartContractsStorageForTxSimulator instead SmartContractsStorageSimulate to each name here ?
@@ -33,7 +33,7 @@ func Test_newBlockProcessorCreatorForShard(t *testing.T) { | |||
_, err := pcf.Create() | |||
require.NoError(t, err) | |||
|
|||
bp, err := pcf.NewBlockProcessor( | |||
bp, vmFactoryForSimulate, err := pcf.NewBlockProcessor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vmFactoryMock or vmFactoryForTxSimulator ?
@@ -136,7 +137,7 @@ func Test_newBlockProcessorCreatorForMeta(t *testing.T) { | |||
_, err = pcf.Create() | |||
require.NoError(t, err) | |||
|
|||
bp, err := pcf.NewBlockProcessor( | |||
bp, vmFactoryForSimulate, err := pcf.NewBlockProcessor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vmFactoryMock or vmFactoryForTxSimulator ?
SmartContractsStorageSimulate: config.StorageConfig{ | ||
Cache: getLRUCacheConfig(), | ||
DB: config.DBConfig{ | ||
FilePath: AddTimestampSuffix("SmartContractsStorageSimulate"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SmartContractsStorageMock or SmartContractsStorageForTxSimulator instead SmartContractsStorageSimulate ?
} | ||
|
||
smartContractStorageSimulate := pcf.config.SmartContractsStorageSimulate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SmartContractsStorageMock or SmartContractsStorageForTxSimulator instead SmartContractsStorageSimulate ?
@@ -189,6 +189,20 @@ | |||
MaxBatchSize = 100 | |||
MaxOpenFiles = 10 | |||
|
|||
[SmartContractsStorageSimulate] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
adb.stackDebug = debug.Stack() | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
@@ -962,6 +965,17 @@ func (adb *AccountsDB) journalize(entry JournalEntry) { | |||
|
|||
adb.entries = append(adb.entries, entry) | |||
log.Trace("accountsDB.Journalize", "new length", len(adb.entries)) | |||
|
|||
if len(adb.entries) == 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iulianpascalau can you answer this ?
System test results v1.2.22-dev-config to fix-boot-from-storage-after-import
Known ERRORS 77 Passed |
Bug-fixes on transaction simulator.