-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PPC (peercoin) segwit transactions are rejected #1631
Comments
@shamardy Could you take a look at this, please? |
I synced PPC locally and the hex from original comment returned
|
@SirSevenG Can you please test with this coin configuration? {
"coin": "PPC-segwit",
"name": "peercoin",
"fname": "Peercoin",
"txversion": 3,
"rpcport": 9902,
"pubtype": 55,
"p2shtype": 117,
"wiftype": 183,
"decimals": 6,
"txfee": 0,
"dust": 10000,
"segwit": true,
"bech32_hrp": "pc",
"address_format": {
"format": "segwit"
},
"orderbook_ticker": "PPC",
"mm2": 1,
"required_confirmations": 1,
"avg_blocktime": 8.5,
"protocol": {
"type": "UTXO"
},
"derivation_path": "m/44'/6'",
"trezor_coin": "Peercoin",
"links": {
"github": "https://github.com/peercoin/peercoin",
"homepage": "https://peercoin.net"
}
},
This is based on |
@shamardy Thanks! Seems to work now. Will need to adjust It kinda worked before, and same 0 fee config works for non-segwit/legacy PPC. What is expected behaviour with |
|
This might be related to transaction weight/vsize calculations that's related to segwit. I will test this myself by increasing the weight/vsize of the tx a bit and see which weight/vsize is accepted, they might have added other calculations elsewhere in the code that I am not aware of. Also, peercoin block explorers don't show the right vsize for segwit transactions https://explorer.peercoin.net/tx/34ec9f2c1ae824f531eb00a040f9441c0067490b6ecef2ab51b768287ba328df , vsize is |
I had to increase the tx size for fee calculations by 80 bytes for the transaction to be accepted (size used for fee estimation = |
i think that using fixed fee (per kb) is generally a good idea... we just need to find the correct values looked in PPC code and can't find such a variable, instead i have this
so loosk like using good fixed txfees per kbyte also spares us the electrums show this
same as wallet
and since PPC has only 6 decimals, that is 10000 sats... so should actually work with those values too |
I am leaning towards not supporting segwit for peercoin, these 3 transactions |
there is actually only one UTXO coin that needs segwit to save on txfees, BTC, for all others, the txfees are negligible, << 0.01 USD |
I agree, but other UTXOs are easy to add and don't need code changes in mm2. For PPC we need to add a field in config to specify that segwit transaction size is calculated like regular transactions and make some changes in the code for this without any benefit for the user while their wallet (tried the web one only, not sure about the others) don't generate segwit addresses for the user. |
So lets just remove
Sure, sounds good. Let me know if you already have a list of potential candidates. I can do the test swaps with the new txversion and see if it's working. |
I opened an issue in the coins repo KomodoPlatform/coins#628.
@SirSevenG If we all agree on this, we can close this issue and remove |
[placeholder for the issue, will update when get more data from synced PPC deamon @smk762]
Describe the bug
Trying to send from PPC-segwit with mm2 results in transaction being rejected.
ref: https://github.com/KomodoPlatform/WebDEX/pull/793#issuecomment-1402310411
Other attempt:
Please answer following questions and attach requested info - it'll help to solve issue faster
[WIP]
The text was updated successfully, but these errors were encountered: