mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 06:41:41 +01:00
A decentralized bitcoin exchange network
* [TESTS] Add tests for P2PDataStorage in order to safely refactor These tests create real versions of the supported Payload & Entry types and run them through the 3 entry points (onMessage, Init, standard add()/remove()/refresh(), to verify the expected return values, internal state changes, and external signals (listeners, broadcasts). The tests are involved and I am proposing future work to make many of the objects more testable that will greatly reduce the work and tests cases needed. This work identified a few unexpected scenarios and potential bugs that are addressed in dependent pull requests. Code coverage when running P2PDataStorageTest: Before: Line: 4% Branch: 0% After: Line: 78% Branch 76% * [PR COMMENTS] Don't use the real Alert class Instead, create a ProtectedStoragePayloadStub class which mocks out the required protobuf Message for hashing. The hash is equal to the ownerPubKey so they are unique. * [PR COMMENTS] Use Client API in comments Change the use of "public api" to "Client API" to describe the set of callers that use the pattern addProtectedStorageEntry(getProtectedStorageEntry()) as a contrast to the onMessage handler users or the GetData users. |
||
---|---|---|
.github | ||
.idea | ||
assets/src | ||
common/src | ||
core | ||
desktop | ||
docs | ||
gradle | ||
monitor | ||
p2p/src | ||
pricenode | ||
relay | ||
scripts | ||
seednode | ||
statsnode/src/main | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
build.gradle | ||
CODEOWNERS | ||
CONTRIBUTING.md | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
README.md | ||
settings.gradle |
Bisq
What is Bisq?
Bisq is a safe, private and decentralized way to exchange bitcoin for national currencies and other digital assets. Bisq uses peer-to-peer networking and multi-signature escrow to facilitate trading without a third party. Bisq is non-custodial and incorporates a human arbitration system to resolve disputes.
To learn more, see the doc and video at https://bisq.network/intro.
Get started using Bisq
Follow the step-by-step instructions at https://bisq.network/get-started.
Contribute to Bisq
See CONTRIBUTING.md and the developer docs.