Skip to content

Commit 3794230

Browse files
committed
gas efficiency update
1 parent a3cd295 commit 3794230

File tree

1 file changed

+1
-1
lines changed
  • cmd/blockchain/ethereum/diaOracleV2MultiupdateService

1 file changed

+1
-1
lines changed

cmd/blockchain/ethereum/diaOracleV2MultiupdateService/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func oracleUpdateExecutor(
413413

414414
// Update prices
415415
// check if we can do the multiupdate or use compatibility mode
416-
if compatibilityMode {
416+
if compatibilityMode || len(keys) == 1 {
417417
for keyIndex := range keys {
418418
oracleUpdateMutex.Lock()
419419
timestamp := time.Now().Unix()

0 commit comments

Comments
 (0)