Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vjrj
ginkgo
Commits
21125500
Commit
21125500
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
use mempool utxo for transactions
parent
1dc23c59
No related branches found
No related tags found
1 merge request
!57
use mempool utxo for transactions
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/g1/api.dart
+2
-2
2 additions, 2 deletions
lib/g1/api.dart
lib/ui/pay_helper.dart
+4
-1
4 additions, 1 deletion
lib/ui/pay_helper.dart
with
6 additions
and
3 deletions
lib/g1/api.dart
+
2
−
2
View file @
21125500
...
@@ -568,7 +568,7 @@ Future<PayResult> pay(
...
@@ -568,7 +568,7 @@ Future<PayResult> pay(
{required String to,
{required String to,
required double amount,
required double amount,
String? comment,
String? comment,
bool
?
useMempool}) async {
bool useMempool
= false
}) async {
try {
try {
final SelectedGvaNode selected = getGvaNode();
final SelectedGvaNode selected = getGvaNode();
...
@@ -584,7 +584,7 @@ Future<PayResult> pay(
...
@@ -584,7 +584,7 @@ Future<PayResult> pay(
amount: amount,
amount: amount,
comment: comment ?? '',
comment: comment ?? '',
cesiumSeed: wallet.seed,
cesiumSeed: wallet.seed,
useMempool: useMempool
?? false
,
useMempool: useMempool,
raiseException: true);
raiseException: true);
logger('
GVA
replied
with
"
$response
"');
logger('
GVA
replied
with
"
$response
"');
return PayResult(message: response, node: selected);
return PayResult(message: response, node: selected);
...
...
This diff is collapsed.
Click to expand it.
lib/ui/pay_helper.dart
+
4
−
1
View file @
21125500
...
@@ -88,7 +88,10 @@ Future<void> payWithRetry(
...
@@ -88,7 +88,10 @@ Future<void> payWithRetry(
return
;
return
;
}
else
{
}
else
{
final
PayResult
result
=
await
pay
(
final
PayResult
result
=
await
pay
(
to:
contactPubKey
,
comment:
comment
,
amount:
convertedAmount
);
to:
contactPubKey
,
comment:
comment
,
amount:
convertedAmount
,
useMempool:
true
);
final
Transaction
pending
=
tx
.
copyWith
(
final
Transaction
pending
=
tx
.
copyWith
(
debugInfo:
debugInfo:
'Node used:
${result.node != null ? result.node!.url : 'unknown'}
'
);
'Node used:
${result.node != null ? result.node!.url : 'unknown'}
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment