-
Notifications
You must be signed in to change notification settings - Fork 0
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
funding asset err with ob-lnd #3
Comments
maybe funding tx gas fee err . |
The new omnicore in the following PR only supports Regtest mode. Faucet for testnet will cause error. |
the err: "unmatched backend error: -26: min relay fee not met, 362 < 384" has fixed at commit 28d5346 but now when call openchannel, the new err msg "unmatched backend error: -26: scriptpubkey" , i have no idea. |
this is the funding-tx dump in the log
i have google the error msg "unmatched backend error: -26: scriptpubkey" https://bitcointalk.org/index.php?topic=5307985.0 maybe the OP_RETURN_str in the length of TxOut[0].PkScript is too small. |
TxOut[0].PkScript payload err , the new err is :
the commit tx-hex
maybe "vout[1].scriptPubKey.type" err below is the correct example:
|
2N9DZN7HX532Wbm8YqLz28RrMbETjM2aXFL is omnicored wallet addres,gen with command "omnicore-cli -regtest getnewaddress" , it's format may be "p2sh-segwit" https://developer.bitcoin.org/reference/rpc/getnewaddress.html 2N9DZ 2MsJb2gTs5FRVBsBFBz1xejGRUtqVFzDZ77 is lnd's address. gen with command "ln-cli newaddress -p2wkh" |
the relative commond or config to build the test environment : omnicored-node (map to bitcoind)cat .bitcoin/bitcoin.conf
omnicore-cli (map to bitcoin-cli)create asset:omnicore-cli omni_sendissuancefixed "2N9DZN7HX532Wbm8YqLz28RrMbETjM2aXFL" 2 2 0 "t1" "" "ftoken" "baidu.com" "" 10000000000 charge:omnicore-cli sendtoaddress $walletAddre 1 omnicore-cli's doc: https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md mine:
obd-ln-server (map to lnd):exec ./lnd-debug you should custom your env your-self: listen_port/RPCUSER/RPCPASS obd-ln-cli: (map to ln-cli):lnd-cli getinfo |
i have replace p2wsh to p2sh or p2pkh at 7728a9a. now the fundingtx:
mpbnheoap2HyokSaAjzgS7Z7iS8vZv8DnA is ln-wallet's address gen with command "ln-cli newaddress", now its p2pkh format. omnicore.log
|
new bug
|
we use p2sh ,without witeness. the tx size int input/size.go, may be affected. Lines 184 to 223 in 6e2214f
|
new bug che channelInfo.capacity should be 800000000 for asset ,not btc.
|
when channel active, the announcement msg process err, the cap should not load from utxo,should use the cap field in the msg |
new bug: lncli addinvoice --asset_id 2147483653 --amt_msat 100000000 |
fix at commit 8db9f62 it's ok now:
|
new bug: return : server log:
|
fix err:
because the invoice-encode miss assetid; assetid should split by ":" with amt the bug fix at commit 0332f69 it's ok now:
|
recharge 2N8uoiw2g6Y3hG1dFwBtWLZZbCCWZt6MonR with Faucet for btc and asset
Faucet:
omni-faucet
OmniFaucet
btc-faucet
https://testnet-faucet.mempool.co/
some err from node-a log :
2022-05-31 17:45:35.923 [ERR] FNDG: Unable to broadcast funding tx 020000000001034d2b60bd2ff29f0ced565ee638aa1033cfe1c0d1cb372d5053f6e23339129624020000001716001459ece1873003e0f988aa08f54997f9e163eea012000000002e673d2fc8600fdfe54a5b1dcd6d432e024b51f82ae124ce25f4d34c97ba4dc50100000017160014663677ab544fa717b271c528b018ebe6ec0a107e000000004c2c9edf33ad2ce2d481d944aefffbedb9cb9661471877d26b402586dc1ecee90100000017160014663677ab544fa717b271c528b018ebe6ec0a107e000000000300000000000000001200000007000000890102000000000000005ade29000000000000160014410370e7d142feda2b443b288b3b1606fc06feea905f010000000000220020751f31da1a25ce1bfbaffdfa86126c968404645ed3c203330f50b04dd22092170247304402203157c7e6a7a29a6ffcd9ec8b7cf27977a4a7a2b1daa1ee8465c1fefa1d788fce0220187a5eea6a34d36f229b3fd60ebcd131da4c3ba98c4cffdc90f42b1a2ce97bb0012102df25495d5ae5bb7d8deb845bf3c7828e5f18d8deba2a3c40faab93a0b86e808e0247304402201dbe0f777a6479aa92f74d18c571b9ee73eeaa2e1485131bb6ea0a1c5f3ad5e80220361ca20af807835b3d941a4c6f0409bb578fdb346c78fd2891f8fd0392b0854f012102cf238281a64299b1ca243e87ee4f13b20f5edf001288e8bc891c645cce1c78ba024830450221009ebc609bd77febe2aca30b8b7324ad4c52c2e15bac5f95c5b14bb68cab51434702201fcaa9253ab1f39b3dec14e5a79d05bce91627d4da7622b82beec6018b4beaa7012102cf238281a64299b1ca243e87ee4f13b20f5edf001288e8bc891c645cce1c78ba00000000 for ChannelPoint(de6159b4f5ae2e755e15f695a1631ac8d16729a20683c62c7beec44aeda06d33:2): unmatched backend error: -26: min relay fee not met, 362 < 384
The text was updated successfully, but these errors were encountered: