Skip to content

Commit ad0209a

Browse files
committed
max fee limit
1 parent f9cddf8 commit ad0209a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/storage/blockchains.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const flux = {
2727
feePerByte: 1, // fee per byte
2828
maxMessage: 80, // 80 bytes in size
2929
maxTxSize: 1800000, // 1,800,000 vbytes
30+
maxFee: 1000000000, // 10 FLUX
3031
rbf: false,
3132
txExpiryHeight: 30, // 30 blocks, 1 hour
3233
};
@@ -57,6 +58,7 @@ const fluxTestnet = {
5758
feePerByte: 1, // fee per byte
5859
maxMessage: 80, // 80 bytes in size
5960
maxTxSize: 1800000, // 1,800,000 vbytes
61+
maxFee: 10000000000, // 100 TEST-FLUX
6062
rbf: false,
6163
txExpiryHeight: 30, // 30 blocks, 1 hour
6264
};
@@ -85,6 +87,7 @@ const rvn = {
8587
feePerByte: 1050, // fee per byte
8688
maxMessage: 80, // 80 bytes in size
8789
maxTxSize: 100000, // 100,000 vbytes
90+
maxFee: 50000000000, // 500 RVN
8891
rbf: true,
8992
};
9093

@@ -113,6 +116,7 @@ const ltc = {
113116
feePerByte: 20, // fee per byte
114117
maxMessage: 80, // 80 bytes in size
115118
maxTxSize: 100000, // 100,000 vbytes
119+
maxFee: 10000000, // 0.1 LTC
116120
rbf: true,
117121
};
118122

@@ -141,6 +145,7 @@ const btc = {
141145
feePerByte: 100, // fee per byte
142146
maxMessage: 80, // 80 bytes in size
143147
maxTxSize: 100000, // 100,000 vbytes
148+
maxFee: 1000000, // 0.01 BTC
144149
rbf: true,
145150
};
146151

@@ -168,6 +173,7 @@ const doge = {
168173
feePerByte: 20, // fee per byte
169174
maxMessage: 80, // 80 bytes in size
170175
maxTxSize: 100000, // 100,000 vbytes
176+
maxFee: 10000000000, // 100 DOGE
171177
rbf: true,
172178
};
173179

@@ -196,6 +202,7 @@ const btcTestnet = {
196202
feePerByte: 5, // fee per byte
197203
maxMessage: 80, // 80 bytes in size
198204
maxTxSize: 100000, // 100,000 vbytes
205+
maxFee: 100000000, // 1 TEST-BTC
199206
rbf: true,
200207
};
201208

@@ -224,6 +231,7 @@ const btcSignet = {
224231
feePerByte: 4, // fee per byte
225232
maxMessage: 80, // 80 bytes in size
226233
maxTxSize: 100000, // 100,000 vbytes
234+
maxFee: 100000000, // 1 TEST-BTC
227235
rbf: true,
228236
};
229237

@@ -253,6 +261,7 @@ const zec = {
253261
feePerByte: 3, // fee per byte
254262
maxMessage: 80, // 80 bytes in size
255263
maxTxSize: 100000, // 100,000 vbytes
264+
maxFee: 10000000, // 0.1 ZEC
256265
rbf: false,
257266
txExpiryHeight: 60, // 1 hour
258267
};
@@ -281,6 +290,7 @@ const bch = {
281290
feePerByte: 4, // fee per byte
282291
maxMessage: 80, // 80 bytes in size
283292
maxTxSize: 100000, // 100,000 vbytes
293+
maxFee: 1000000, // 0.01 BCH
284294
rbf: false,
285295
cashaddr: 'bitcoincash:',
286296
hashType: 0x40, // will force SIGHASH_BITCOINCASHBIP143

0 commit comments

Comments
 (0)