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

Commit

Permalink
Market Sell tab will pay fee in the bitAsset instead of BTS. Ledger c…
Browse files Browse the repository at this point in the history
…ache fix.
  • Loading branch information
James Calfee committed Jun 7, 2015
1 parent 4eb71b6 commit 0c5fe4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/blockchain/chain_database.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ class ChainDatabase
#ChainDatabase.account_name_add entry.to_account
lookup_promises.push resolve_name entry, "from_account"
lookup_promises.push resolve_name entry, "to_account"
cache transaction # you don't want to do all that again do you?
defer.resolve()
return
#an_promise = ChainDatabase.account_name_resolve(@rpc)
Expand Down Expand Up @@ -625,6 +626,11 @@ class ChainDatabase
### ram backed disk cache ###
ChainDatabase.assetid_symbol_precision_resolve=(rpc)->
spmap = ChainDatabase.assetid_symbol_precision_map
unless spmap
defer = q.defer()
defer.resolve {}
return defer.promise

rpc_params = []
for param in Object.keys spmap
continue if spmap[param]
Expand All @@ -637,7 +643,6 @@ class ChainDatabase

promise = rpc.request('batch', ['blockchain_get_asset', rpc_params])
promise.then (batch_result)->
console.log('... batch_result',batch_result)
batch_result = batch_result.result
for asset in batch_result
continue unless asset
Expand Down
2 changes: 1 addition & 1 deletion src/client/wallet_api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class WalletAPI
order_price_asset
)
@_finalize_and_send(
builder, from_account, quantity_symbol
builder, from_account, quote_price_symbol
).then (record)->
record
### Example to create USD from XTS at a penney a share:
Expand Down

0 comments on commit 0c5fe4f

Please sign in to comment.