+ fixed issue with too high fee rates for text inscriptions
This commit is contained in:
1 parent
5fb49051ba
commit
e9083da457
3 files changed
+20
-3
No files matched your search
+6
-1
@@ -712,7 +712,12 @@
|
||||
console.log('Inscription address: ', inscriptionAddress );
|
||||
console.log('Tapkey:', tapkey);
|
||||
|
||||
let txsize = 1000 + Math.floor(data.length / 4);
|
||||
let txsize = 600 + Math.floor(data.length / 4);
|
||||
|
||||
if(files[i].sha256 == '')
|
||||
{
|
||||
txsize = 300 + Math.floor(files[i].hex.length / 2);
|
||||
}
|
||||
|
||||
let fee = feerate * txsize;
|
||||
total_fee += fee;
|
||||
|
||||
Reference in new issue
Block a user