SuperNET icon indicating copy to clipboard operation
SuperNET copied to clipboard

txfee_satoshis is not applied to transaction

Open pbca26 opened this issue 9 years ago • 2 comments

i specified 200000000

curl --url "http://127.0.0.1:7778" --data "{"startpend":8,"endpend":4,"services":129,"auxpow":1,"RELAY":1,"VALIDATE":1,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"DOGE","name":"Dogecoin","netmagic":"C0C0C0C0","p2p":22556,"rpc":22555,"pubval":30,"p2shval":5,"wifval":128,"txfee_satoshis":"200000000","minconfirms":2,"genesishash":"1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691","genesis":{"hashalgo": "scrypt","version":1,"timestamp":1386325540,"nBits":"1e0ffff0","nonce":99943,"merkle_root":"5b2a3f53f605d62c53e62932dac6925e3d74afa5a4b459745c36d42d0ed26a69"},"alertpubkey":"04d4da7a5dae4db797d9b0644d57a5cd50e05a70f36091cd62e2fc41c98ded06340be5a43a35e185690cd9cde5d72da8f6d065b499b06f51dcfba14aad859f443a"}"

instead iguana applied 0.00010000 https://dogechain.info/tx/081debe2cc852422f64b065e7083f8c46fa53ba2fe607cc9d069f97f79c2b8a8

pbca26 avatar Sep 25 '16 17:09 pbca26

also check settxfee method it doesn't seem to have any effect on transactions still the same 0.00010000 fee is applied even after i set 1.0 fee via settxfee method

pbca26 avatar Sep 26 '16 09:09 pbca26

pushed a version that sets the txfee to one third the value of amount specified in settxfee, ie. assumes tx size is ~333 bytes

jl777 avatar Nov 01 '16 18:11 jl777