do not change fractional base yet
This commit is contained in:
parent
f7b839188d
commit
d088aec009
@ -509,7 +509,7 @@ export type PayCoinInfo = Array<{ updatedCoin: CoinRecord, sig: CoinPaySig }>;
|
|||||||
|
|
||||||
|
|
||||||
export namespace Amounts {
|
export namespace Amounts {
|
||||||
export const fractionalBase = 1e8;
|
export const fractionalBase = 1e6;
|
||||||
|
|
||||||
export interface Result {
|
export interface Result {
|
||||||
amount: AmountJson;
|
amount: AmountJson;
|
||||||
|
@ -353,7 +353,7 @@ export namespace Stores {
|
|||||||
constructor() {
|
constructor() {
|
||||||
// case needed because of bug in type annotations
|
// case needed because of bug in type annotations
|
||||||
super("denominations",
|
super("denominations",
|
||||||
{keyPath: ["denomPub", "exchangeBaseUrl"] as any as IDBKeyPath});
|
{keyPath: ["exchangeBaseUrl", "denomPub"] as any as IDBKeyPath});
|
||||||
}
|
}
|
||||||
|
|
||||||
exchangeBaseUrlIndex = new Index<string, DenominationRecord>(this, "exchangeBaseUrl", "exchangeBaseUrl");
|
exchangeBaseUrlIndex = new Index<string, DenominationRecord>(this, "exchangeBaseUrl", "exchangeBaseUrl");
|
||||||
@ -734,7 +734,7 @@ export class Wallet {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const denom = await this.q().get(Stores.denominations,
|
const denom = await this.q().get(Stores.denominations,
|
||||||
[exchange.baseUrl, preCoin.denomPub]);
|
[preCoin.exchangeBaseUrl, preCoin.denomPub]);
|
||||||
if (!denom) {
|
if (!denom) {
|
||||||
console.error("db inconsistent: denom for precoin not found");
|
console.error("db inconsistent: denom for precoin not found");
|
||||||
return;
|
return;
|
||||||
|
@ -34,7 +34,7 @@ import { ChromeBadge } from "./chromeBadge";
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const DB_NAME = "taler";
|
const DB_NAME = "taler";
|
||||||
const DB_VERSION = 11;
|
const DB_VERSION = 12;
|
||||||
|
|
||||||
import {Stores} from "./wallet";
|
import {Stores} from "./wallet";
|
||||||
import {Store, Index} from "./query";
|
import {Store, Index} from "./query";
|
||||||
|
Loading…
Reference in New Issue
Block a user