Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/libData/AccountData/TxnOrderVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool VerifyTxnOrderWTolerance(const std::vector<TxnHash>& expectedTxns,
// 1 3 2 4 5 6 7 8 10, the expected order is 0 1 2 3 4 5 6 7 8 9 10 11 12
// when it comes to 9, which is out of the 20% of the size of the
// received order(2) + sizeof matchedIndexes(1), discard when it comes to
// 3, which is in the the range (2 + sizeof{0,1}) = 4, accept finally the
// 3, which is in the range (2 + sizeof{0,1}) = 4, accept finally the
// indexed items are 0 1 3 4 5 6 7 8 10, size(9), which is more than 80%
// of the size in the expecting order (12*0.8 = 9), thus return true if
// the expectig order is 0 1 2 3 4 5 6 7 8 9 10 11 12 13, then the min
Expand Down
2 changes: 1 addition & 1 deletion src/libDirectoryService/DirectoryService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ void DirectoryService::StartNewDSEpochConsensus(bool isRejoin) {
}
// now that we already run DSBlock Consensus, lets clear the buffered pow
// solutions. why not clear it at start of new ds epoch - becoz sometimes
// node is too late to start new ds epoch and and it already receives pow
// node is too late to start new ds epoch and it already receives pow
// solution for next ds epoch. so we buffer them instead.
{
lock_guard<mutex> g(m_mutexPowSolution);
Expand Down
2 changes: 1 addition & 1 deletion tests/EvmAcceptanceTests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ More faster but with fewer test cases.

## A few simple rules before start

1. Please prefer ethers.js library to web3.js. Our default library to use throughout the the code is **ethers.js**.
1. Please prefer ethers.js library to web3.js. Our default library to use throughout the code is **ethers.js**.
2. Please use [typescript](./Typescript.md). Javascript is not used anymore in this test suite. You can learn more about typescript [here](./Typescript.md).
3. Please don't add commented tests. You can't add disabled tests as well, unless you create a ticket for it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ procedure AuthorizedMoveIfSufficientBalance(from: ByStr20, to: ByStr20, amount:
can_do = uint128_le amount bal;
match can_do with
| True =>
(* Subtract amount from from and add it to to address *)
(* Subtract amount from from and add it to address *)
new_from_bal = builtin sub bal amount;
balances[from] := new_from_bal;
(* Adds amount to to address *)
(* Adds amount to address *)
get_to_bal <- balances[to];
new_to_bal = match get_to_bal with
| Some bal => builtin add bal amount
Expand Down
4 changes: 2 additions & 2 deletions tests/EvmAcceptanceTests/contracts/scilla/ZRC2Interop.scilla
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ procedure AuthorizedMoveIfSufficientBalance(from: ByStr20, to: ByStr20, amount:
can_do = uint128_le amount bal;
match can_do with
| True =>
(* Subtract amount from from and add it to to address *)
(* Subtract amount from from and add it to address *)
new_from_bal = builtin sub bal amount;
balances[from] := new_from_bal;
(* Adds amount to to address *)
(* Adds amount to address *)
get_to_bal <- balances[to];
new_to_bal = match get_to_bal with
| Some bal => builtin add bal amount
Expand Down
2 changes: 1 addition & 1 deletion tests/Persistence/Test_TrieDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ BOOST_AUTO_TEST_CASE(createTwoTrieOnOneDB) {
"ERROR: Trie2 still have the new element after rollback");
m_trie2.setRoot(root2);
BOOST_CHECK_MESSAGE(m_trie2.contains(h),
"ERROR: Trie2 still cannot get the the old element "
"ERROR: Trie2 still cannot get the old element "
"after reset the root to the old one");
}

Expand Down