Skip to content
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

Typo Fix: "Transcation" to "Transaction" #4248

Merged
merged 4 commits into from
Sep 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix failed test
  • Loading branch information
algoganesh committed Jul 28, 2022
commit 013418151cf0d9c1960cd569a861904e471c9872
2 changes: 1 addition & 1 deletion installer/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion ledger/internal/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func newTestLedger(t testing.TB, balances bookkeeping.GenesisBalances) *evalTest
// not a valid block (e.g., it has duplicate transactions, overspends some
// account, etc).
func (ledger *evalTestLedger) Validate(ctx context.Context, blk bookkeeping.Block, executionPool execpool.BacklogPool) (*ledgercore.ValidatedBlock, error) {
verifiedTxnCache := verify.MakeVerifiedTransactionCache(config.GetDefaultLocal().VerifiedTransactionsCacheSize)
verifiedTxnCache := verify.MakeVerifiedTransactionCache(config.GetDefaultLocal().VerifiedTranscationsCacheSize)

delta, err := Eval(ctx, ledger, blk, true, verifiedTxnCache, executionPool)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions ledger/ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func OpenLedger(
log logging.Logger, dbPathPrefix string, dbMem bool, genesisInitState ledgercore.InitState, cfg config.Local,
) (*Ledger, error) {
var err error
verifiedCacheSize := cfg.VerifiedTransactionsCacheSize
verifiedCacheSize := cfg.VerifiedTranscationsCacheSize
if verifiedCacheSize < cfg.TxPoolSize {
verifiedCacheSize = cfg.TxPoolSize
log.Warnf("The VerifiedTransactionsCacheSize in the config file was misconfigured to have smaller size then the TxPoolSize; The verified cache size was adjusted from %d to %d.", cfg.VerifiedTransactionsCacheSize, cfg.TxPoolSize)
log.Warnf("The VerifiedTranscationsCacheSize in the config file was misconfigured to have smaller size then the TxPoolSize; The verified cache size was adjusted from %d to %d.", cfg.VerifiedTranscationsCacheSize, cfg.TxPoolSize)
}

l := &Ledger{
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v14.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v15.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v16.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v17.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v18.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v19.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v20.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v21.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v22.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}
2 changes: 1 addition & 1 deletion test/testdata/configs/config-v23.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@
"TxSyncServeResponseSize": 1000000,
"TxSyncTimeoutSeconds": 30,
"UseXForwardedForAddressField": "",
"VerifiedTransactionsCacheSize": 30000
"VerifiedTranscationsCacheSize": 30000
}