Skip to content
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

[open_channel] The funding fee rate and the fee for opening a channel are inconsistent #276

Open
gpBlockchain opened this issue Oct 22, 2024 · 0 comments

Comments

@gpBlockchain
Copy link

open_channel(10000)
image

curl --location 'http://127.0.0.1:8227' --header 'Content-Type: application/json' --data '{
    "id": 42,
    "jsonrpc": "2.0",
    "method": "open_channel",
    "params": [
        {
            "peer_id": "QmS8y8sAoF7DH89st7fquUVW9Y1W3cgcnPgWjPe6tcm1dw",
            "funding_amount": "0x174876e800",
            "public": true,
            "funding_fee_rate": "0x2710"
        }
    ]
}'

https://pudge.explorer.nervos.org/transaction/0x7adae68c03c109a4abf390d4c3d69916a8a3f8692e1da98d648b807590b49ab6

log

  2024-10-22T15:20:13.014070Z DEBUG fnn::fiber::network: Handling command: OpenChannel(OpenChannelCommand { peer_id: PeerId(QmS8y8sAoF7DH89st7fquUVW9Y1W3cgcnPgWjPe6tcm1dw), funding_amount: 100000000000, public: true, shutdown_script: None, funding_udt_type_script: None, commitment_fee_rate: None, funding_fee_rate: Some(10000), tlc_locktime_expiry_delta: None, tlc_min_value: None, tlc_max_value: None, tlc_fee_proportional_millionths: None, max_tlc_value_in_flight: None, max_tlc_number_in_flight: None }, RpcReplyPort { port: Sender { inner: Some(Inner { state: State { is_complete: false, is_closed: false, is_rx_task_set: true, is_tx_task_set: false } }) }, timeout: None })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant