Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/paging #1717

Merged
merged 2 commits into from
Sep 24, 2018
Merged

Bug/paging #1717

merged 2 commits into from
Sep 24, 2018

Conversation

matiu
Copy link
Contributor

@matiu matiu commented Sep 21, 2018

This fix paging transaction lists for wallets and fee estimation for BCH.

It probably needs some refactoring but it is working fine now.

@matiu matiu requested a review from micahriggan September 21, 2018 20:22
Copy link
Contributor

@micahriggan micahriggan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make some slight changes so we don't have the chain if statements :)

@@ -336,7 +336,11 @@ export class InternalStateProvider implements CSP.IChainStateService {

async getFee(params: CSP.GetEstimateSmartFeeParams) {
const { chain, network, target } = params;
return this.getRPC(chain, network).getEstimateSmartFee(Number(target));
if (chain === 'BCH') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, does BCH not like estimateSmartFee?

@@ -87,6 +88,9 @@ export class StorageService {
typecastedValue = new Date(oldValue) as any;
break;
}
// TODO: Micah check this!
} else if (modelKey == "_id") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me, I think since we're making this property a special case, having it this way is pretty clear

@micahriggan micahriggan merged commit a9720c0 into bitpay:v8.0.0 Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants