Fix a bug when TraceCollectionSubprovider was hanging on the fake Geth snapshot transaction

This commit is contained in:
Leonid Logvinov
2019-01-17 14:36:12 +01:00
parent 83f77a2d56
commit 4c5bde1b54
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,11 @@
"version": "4.0.1",
"changes": [
{
"note": "Fix a bug when a custom Geth tracer didn't return stack entries for `DELEGATECALL`",
"note": "Fix a bug when a custom `Geth` tracer didn't return stack entries for `DELEGATECALL`",
"pr": "TODO"
},
{
"note": "Fix a bug when `TraceCollectionSubprovider` was hanging on the fake `Geth` snapshot transaction",
"pr": "TODO"
}
]

View File

@@ -144,7 +144,7 @@ export abstract class TraceCollectionSubprovider extends Subprovider {
txHash: string | undefined,
cb: Callback,
): Promise<void> {
if (!txData.isFakeTransaction) {
if (!txData.isFakeTransaction && !(txData.from === txData.to)) {
// This transaction is a usual transaction. Not a call executed as one.
// And we don't want it to be executed within a snapshotting period
await this._lock.acquire();