use new fee level only for the current transaction created
This commit is contained in:
parent
f681122fd6
commit
6521bbdcb4
9 changed files with 147 additions and 96 deletions
|
|
@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('paperWalletController',
|
|||
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, null, function(err, testTx) {
|
||||
if (err) return cb(err);
|
||||
var rawTxLength = testTx.serialize().length;
|
||||
feeService.getCurrentFeeValue('livenet', function(err, feePerKB) {
|
||||
feeService.getCurrentFeeValue('livenet', null, function(err, feePerKB) {
|
||||
var opts = {};
|
||||
opts.fee = Math.round((feePerKB * rawTxLength) / 2000);
|
||||
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, opts, function(err, tx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue