Skip to content

feat: expose isValidPeer via ajv format rule#2960

Merged
spkjp merged 9 commits intodevelopfrom
feat/core-p2p/ajv-peer-schema
Sep 25, 2019
Merged

feat: expose isValidPeer via ajv format rule#2960
spkjp merged 9 commits intodevelopfrom
feat/core-p2p/ajv-peer-schema

Conversation

@spkjp
Copy link
Copy Markdown
Contributor

@spkjp spkjp commented Sep 24, 2019

Summary

Adds a new Ajv format to validate peers which is required for the seednodes of BridgechainRegistration/Update transactions which right are allowed to be localhost.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

Apply the same rules to seednodes in BridgechainRegistration/Update
assets, by calling `isValidPeer` through an Ajv `peer` format.
@spkjp spkjp force-pushed the feat/core-p2p/ajv-peer-schema branch from 8d20402 to 27a0371 Compare September 25, 2019 03:31
@spkjp spkjp changed the title feat(core-p2p): expose isValidPeer via ajv format feat: expose isValidPeer via ajv format rule Sep 25, 2019
@spkjp spkjp marked this pull request as ready for review September 25, 2019 03:35
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 25, 2019

Codecov Report

Merging #2960 into develop will increase coverage by <.01%.
The diff coverage is 80%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2960      +/-   ##
===========================================
+ Coverage    68.41%   68.41%   +<.01%     
===========================================
  Files          405      405              
  Lines         9828     9832       +4     
  Branches       508      509       +1     
===========================================
+ Hits          6724     6727       +3     
- Misses        3064     3065       +1     
  Partials        40       40
Impacted Files Coverage Δ
...lace/src/transactions/utils/bridgechain-schemas.ts 100% <ø> (ø) ⬆️
packages/crypto/src/utils/is-valid-peer.ts 94.11% <100%> (ø)
packages/core-p2p/src/peer-processor.ts 74.35% <100%> (+0.67%) ⬆️
packages/crypto/src/validation/formats.ts 66.66% <66.66%> (-6.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c218d1a...45b7a3a. Read the comment docs.

@spkjp spkjp merged commit edb33b3 into develop Sep 25, 2019
@ghost ghost deleted the feat/core-p2p/ajv-peer-schema branch September 25, 2019 21:07
@ghost ghost removed the Status: Needs Review label Sep 25, 2019
vasild added a commit that referenced this pull request Sep 27, 2019
…ts-nonce

* ArkEcosystem/core/develop:
  refactor(core-transaction-pool): don't accept expired v1 transactions (#2948)
  fix(core-snapshots): remove bogus skipRoundRows (#2973)
  feat(core-api): endpoints for locks/businesses/bridgechains (#2940)
  fix(core-blockchain): round deletion during rollback (#2970)
  fix: range selection in pool's getTransactions() (#2952)
  feat: expose `isValidPeer` via ajv format rule (#2960)
  chore: remove trailing whitespace (#2971)
  fix(core-transactions): update wallet nonce when applying v1 transaction (#2959)
  fix(core-blockchain): do not reset `noBlockCounter` when `downloadBlocks` succeeds (#2968)
  refactor(pool): remove unnecessary check from validateTransactions() (#2951)
  ci: temporarily disable pull_request.synchronize event (#2966)
  refactor: strengthen a nonce check in performGenericWalletChecks() (#2949)
  ci: setup github action workflow for e2e tests (#2964)
  chore: drop node 11 support (#2965)
  test(e2e): No need to run as root the chmod command when modifying own's files (#2958)
  refactor(crypto): change maximum recipients of multipayment via milestone (#2961)
  ci: split functional job into 1 job per type (#2963)
  refactor(core-p2p): make peer reply errors less verbose (#2962)
  fix(core-state): index recipient wallets during bootstrap (#2947)
  Tell git to ignore vim's temporary files (#2957)
  ci: force exit tests if there are hanging promises
  ci: use different test coverage directories for each type (#2956)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants