-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements Market.MidGap and Market.CoinLocked, and adds a CoinLocker. swap: Create LockableAsset and use in the coins map. LockOrdersCoins separates orders by locked asset coins internally. Unlock coins in Swapper.revoke and in processBlock for completed matches. book: Use a mutex for atomic buy and sell operations (i.e. Buys()). pg: Add ActiveOrderCoins to retrieve coins for active orders. Also, fix shallow copy and avoid buffer reuse in (*dbCoins).Scan. CI: Add structcheck and replace gofmt with goimports. matcher: add doneOK output, where doneOK = passed - booked Fix passed not including unmatched standing orders.
- Loading branch information
Showing
25 changed files
with
1,212 additions
and
153 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
Oops, something went wrong.