@@ -5,6 +5,7 @@ import * as bitcoin from 'bitcoinjs-lib';
5
5
import { randomBytes } from 'react-native-randombytes' ;
6
6
import { Platform } from 'react-native' ;
7
7
import {
8
+ IAddress ,
8
9
TAccount ,
9
10
TAvailableNetworks ,
10
11
THeader ,
@@ -71,17 +72,26 @@ export default class TestProfile {
71
72
getScriptPubKeyHistory : this . getScriptPubKeyHistory ,
72
73
getFees : ( ) =>
73
74
Promise . resolve ( {
74
- highPriority : 4 ,
75
- normal : 3 ,
76
- background : 2 ,
77
- mempoolMinimum : 1 ,
75
+ onChainSweep : 4 ,
76
+ maxAllowedNonAnchorChannelRemoteFee : Math . max ( 25 , 4 * 10 ) ,
77
+ minAllowedAnchorChannelRemoteFee : 1 ,
78
+ minAllowedNonAnchorChannelRemoteFee : Math . max ( 1 - 1 , 0 ) ,
79
+ anchorChannelFee : 2 ,
80
+ nonAnchorChannelFee : 3 ,
81
+ channelCloseMinimum : 1 ,
78
82
} ) ,
79
83
getTransactionData : this . getTransactionData ,
80
84
getTransactionPosition : this . getTransactionPosition ,
81
85
broadcastTransaction : this . broadcastTransaction ,
82
86
network : ldkNetwork ( this . network ) ,
83
87
// forceCloseOnStartup: { forceClose: true, broadcastLatestTx: false },
84
88
forceCloseOnStartup : undefined ,
89
+ // trustedZeroConfPeers: [],
90
+ backupServerDetails : {
91
+ host : 'https://blocktank.synonym.to/staging-backups-ldk' ,
92
+ serverPubKey :
93
+ '02c03b8b8c1b5500b622646867d99bf91676fac0f38e2182c91a9ff0d053a21d6d' ,
94
+ } ,
85
95
} ;
86
96
} ;
87
97
@@ -104,7 +114,7 @@ export default class TestProfile {
104
114
return { name : this . name , seed : this . seed } ;
105
115
} ;
106
116
107
- public getAddress = async ( ) : Promise < string > => {
117
+ public getAddress = async ( ) : Promise < IAddress > => {
108
118
const network = getNetwork ( this . network ) ;
109
119
const mnemonic = bip39 . entropyToMnemonic ( this . seed ) ;
110
120
const mnemonicSeed = await bip39 . mnemonicToSeed ( mnemonic ) ;
@@ -117,7 +127,10 @@ export default class TestProfile {
117
127
if ( ! address ) {
118
128
throw new Error ( 'Failed to generate address' ) ;
119
129
}
120
- return address ;
130
+ return {
131
+ address : address ,
132
+ publicKey : keyPair . publicKey . toString ( 'hex' ) ,
133
+ } ;
121
134
} ;
122
135
123
136
public getScriptPubKeyHistory = async (
0 commit comments