Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Rename network from bitcoin-payin to coinbase-payin
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Apr 5, 2015
1 parent 103b239 commit 2408728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sql/branch.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TYPE payment_net ADD VALUE 'bitcoin-payin';
ALTER TYPE payment_net ADD VALUE 'coinbase-payin';
2 changes: 1 addition & 1 deletion tests/py/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_coinbase_success_callback(self, re):
assert r.code == 200, r.body

# Must create a route
route = ExchangeRoute.from_address(alice, 'bitcoin-payin', '10N9LK1Q')
route = ExchangeRoute.from_address(alice, 'coinbase-payin', '10N9LK1Q')
assert isinstance(route, ExchangeRoute)

assert re.call_count == 1
Expand Down
4 changes: 2 additions & 2 deletions www/callbacks/coinbase.spt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if order:
participant = Participant.from_id(int(order['custom']))

# Check if a route corresponding to the order ID already exists.
route = ExchangeRoute.from_address(participant, 'bitcoin-payin', order['id'])
route = ExchangeRoute.from_address(participant, 'coinbase-payin', order['id'])

# If not, create one.
if not isinstance(route, ExchangeRoute):
route = ExchangeRoute.insert(participant, 'bitcoin-payin', order['id'])
route = ExchangeRoute.insert(participant, 'coinbase-payin', order['id'])

status = order['status']

Expand Down

0 comments on commit 2408728

Please sign in to comment.