-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ArkEcosystem/core/develop' into db-roun…
…ds-id * ArkEcosystem/core/develop: release: 2.4.13 (#2752) fix: do not purge transactions when a block is not accepted (#2751) release: 2.5.0-next.5 (#2749) fix(core-utils): grant access if the whitelist is empty (#2748) release: 2.5.0-next.4 (#2747) fix(core-blockchain): always attempt to download blocks after start (#2746) refactor(core-p2p): block when rate limit exceeded (#2745) perf(core-p2p): download serialized blocks (#2743) refactor(core-database-postgres): exit on unexpected error (#2744) chore(core-p2p): allow 2.4 and 2.5 nodes (#2716)
- Loading branch information
Showing
78 changed files
with
497 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
export const transactionPool = { | ||
buildWallets: () => undefined, | ||
purgeByBlock: () => undefined, | ||
acceptChainedBlock: () => undefined, | ||
purgeSendersWithInvalidTransactions: () => undefined, | ||
removeTransactionsById: () => undefined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
export const transactionPool = { | ||
buildWallets: () => undefined, | ||
purgeByBlock: () => undefined, | ||
acceptChainedBlock: () => undefined, | ||
purgeSendersWithInvalidTransactions: () => undefined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import "jest-extended"; | ||
|
||
import { isWhitelisted } from "../../../packages/core-utils/src"; | ||
|
||
describe("isWhitelisted", () => { | ||
it("should allow everyone", () => { | ||
expect(isWhitelisted(["*"], "127.0.0.1")).toBeTrue(); | ||
expect(isWhitelisted(["*"], "192.168.1.1")).toBeTrue(); | ||
expect(isWhitelisted(["*"], "168.1.1.1")).toBeTrue(); | ||
}); | ||
|
||
it("should allow addresses with prefixes", () => { | ||
expect(isWhitelisted(["127.*"], "127.0.0.1")).toBeTrue(); | ||
expect(isWhitelisted(["127.*"], "127.0.0.2")).toBeTrue(); | ||
expect(isWhitelisted(["127.*"], "128.0.0.1")).toBeFalse(); | ||
}); | ||
|
||
it("should allow addresses with suffixes", () => { | ||
expect(isWhitelisted(["*.127"], "1.1.1.127")).toBeTrue(); | ||
expect(isWhitelisted(["*.127"], "1.1.1.127")).toBeTrue(); | ||
expect(isWhitelisted(["*.127"], "1.1.1.128")).toBeFalse(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.