Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ functions
Functions
16,782 in github.com/ElementsProject/lightning
⨍
Functions
16,782
◇
Types & classes
11,024
↳
Endpoints
80
↓ 1 callers
Function
test_account_balances
plugins/bkpr/test/run-recorder.c:1474
↓ 1 callers
Function
test_account_crud
plugins/bkpr/test/run-recorder.c:1551
↓ 1 callers
Function
test_against_naive32
ccan/ccan/bitops/test/run-selftest.c:40
↓ 1 callers
Function
test_against_naive64
ccan/ccan/bitops/test/run-selftest.c:48
↓ 1 callers
Function
test_amount_div
common/test/run-amount.c:186
↓ 1 callers
Function
test_amount_fee_str
common/test/run-amount.c:100
↓ 1 callers
Function
test_amount_sub_fee
Note u32 truncation tests 0 values! */
common/test/run-amount.c:71
↓ 1 callers
Function
test_amount_with_fee
common/test/run-amount.c:109
↓ 1 callers
Function
test_append_empty
common/test/run-utils-tal_arr_append.c:112
↓ 1 callers
Function
test_append_nonempty
common/test/run-utils-tal_arr_append.c:127
↓ 1 callers
Function
test_append_structs
common/test/run-utils-tal_arr_append.c:182
↓ 1 callers
Function
test_append_take
common/test/run-utils-tal_arr_append.c:208
↓ 1 callers
Function
test_appendn_partial
common/test/run-utils-tal_arr_append.c:146
↓ 1 callers
Function
test_appendn_zero
common/test/run-utils-tal_arr_append.c:163
↓ 1 callers
Function
test_b11
common/test/run-bolt11.c:181
↓ 1 callers
Function
test_basic_alloc
ccan/ccan/bitmap/test/run-alloc.c:18
↓ 1 callers
Function
test_before_rate
Timestamp before any rate -> NULL */
plugins/bkpr/test/run-currencyrate_str.c:448
↓ 1 callers
Function
test_block_range
gossipd/test/run-next_block_range.c:61
↓ 1 callers
Function
test_case_amount_div
common/test/run-amount.c:170
↓ 1 callers
Function
test_case_amount_div_ceil
common/test/run-amount.c:178
↓ 1 callers
Function
test_chain_event_crud
plugins/bkpr/test/run-recorder.c:1334
↓ 1 callers
Function
test_channel_config_crud
wallet/test/run-wallet.c:1812
↓ 1 callers
Function
test_channel_crud
wallet/test/run-wallet.c:1369
↓ 1 callers
Function
test_channel_event_crud
plugins/bkpr/test/run-recorder.c:1256
↓ 1 callers
Function
test_channel_inflight_crud
wallet/test/run-wallet.c:1617
↓ 1 callers
Function
test_channel_maximum_forward
Test channel_maximum_forward function */
plugins/renepay/test/run-testflow.c:750
↓ 1 callers
Function
test_channel_rebalances
plugins/bkpr/test/run-recorder.c:1168
↓ 1 callers
Function
test_channel_update_funding
tests/fuzz/fuzz-initial_channel.c:36
↓ 1 callers
Function
test_cmp_self
ccan/ccan/asort/test/run.c:49
↓ 1 callers
Function
test_continuations
ccan/ccan/utf8/test/run-decode.c:240
↓ 1 callers
Function
test_decrypt
common/test/run-blindedpath_enctlv.c:101
↓ 1 callers
Function
test_decrypt_body
Test body decryption of arbitrary bytes. */
tests/fuzz/fuzz-cryptomsg.c:96
↓ 1 callers
Function
test_decrypt_header
Test header decryption of arbitrary bytes. */
tests/fuzz/fuzz-cryptomsg.c:84
↓ 1 callers
Function
test_ecdh
common/test/run-route_blinding_onion_test.c:57
↓ 1 callers
Function
test_ecdh
common/test/run-onion-test-vector.c:126
↓ 1 callers
Function
test_edge_probability
plugins/renepay/test/run-testflow.c:407
↓ 1 callers
Function
test_empty_db_migrate
wallet/test/run-db.c:414
↓ 1 callers
Function
test_enc
devtools/encodeaddr.c:7
↓ 1 callers
Function
test_encrypt_decrypt_equality
Test that encrypting and decrypting the message does not alter it. */
tests/fuzz/fuzz-cryptomsg.c:63
↓ 1 callers
Function
test_expired_rate
Timestamp after rate expiry -> NULL */
plugins/bkpr/test/run-currencyrate_str.c:457
↓ 1 callers
Function
test_feature_set_or
common/test/run-features.c:141
↓ 1 callers
Function
test_feature_set_sub
common/test/run-features.c:181
↓ 1 callers
Function
test_feature_trim
common/test/run-features.c:215
↓ 1 callers
Function
test_featurebits_or
common/test/run-features.c:112
↓ 1 callers
Function
test_final_decrypt
common/test/run-blindedpath_enctlv.c:125
↓ 1 callers
Function
test_flow_to_route
plugins/renepay/test/run-testflow.c:518
↓ 1 callers
Function
test_format_event_csv_escape_value
plugins/bkpr/test/run-format_event.c:202
↓ 1 callers
Function
test_format_event_fallback
{payment_id:NONE} - if-not-set fallback */
plugins/bkpr/test/run-format_event.c:146
↓ 1 callers
Function
test_format_event_ifset
{credit?+{credit}:0} - ifset wraps value, ifnotset is "0" */
plugins/bkpr/test/run-format_event.c:259
↓ 1 callers
Function
test_format_event_literal_only
plugins/bkpr/test/run-format_event.c:91
↓ 1 callers
Function
test_format_event_missing_no_fallback
plugins/bkpr/test/run-format_event.c:225
↓ 1 callers
Function
test_format_event_nested_fallback
{description:{txid:LAST}} - nested if-not-set */
plugins/bkpr/test/run-format_event.c:169
↓ 1 callers
Function
test_format_event_simple_tag
plugins/bkpr/test/run-format_event.c:112
↓ 1 callers
Function
test_format_event_zero_amount_no_conditionals
{credit} with no conditionals: zero outputs "0" (ZERO_AMOUNT passthrough) */
plugins/bkpr/test/run-format_event.c:302
↓ 1 callers
Function
test_fractional_btc
0.01 BTC = 1e9 msat: 1e9 * 5e6 / 1e11 = 50,000 cents -> "500.00" */
plugins/bkpr/test/run-currencyrate_str.c:487
↓ 1 callers
Function
test_htlc_crud
wallet/test/run-wallet.c:1837
↓ 1 callers
Function
test_htlcsigs_confirm_inflight
wallet/test/run-wallet.c:1567
↓ 1 callers
Function
test_ignored_funding_input
Splice does not put the shared funding input in the witness array. */
common/test/run-tx_signatures_count.c:71
↓ 1 callers
Function
test_ilog32
ccan/ccan/ilog/test/run-out-of-line.c:8
↓ 1 callers
Function
test_ilog32
ccan/ccan/ilog/test/run.c:8
↓ 1 callers
Function
test_ilog64
ccan/ccan/ilog/test/run-out-of-line.c:14
↓ 1 callers
Function
test_ilog64
ccan/ccan/ilog/test/run.c:14
↓ 1 callers
Function
test_invalid_op_return_empty
Test case: Invalid OP_RETURN with no data
common/test/run-shutdown_scriptpubkey.c:123
↓ 1 callers
Function
test_invalid_op_return_too_long
common/test/run-shutdown_scriptpubkey.c:96
↓ 1 callers
Function
test_invalid_op_return_too_short
common/test/run-shutdown_scriptpubkey.c:84
↓ 1 callers
Function
test_invalid_op_return_wrong_opcode
Test case: Invalid OP_RETURN with incorrect OP_RETURN opcode
common/test/run-shutdown_scriptpubkey.c:116
↓ 1 callers
Function
test_invalid_op_return_wrong_push_length
Test case: Invalid OP_RETURN with incorrect push length (e.g., 77 bytes using wrong prefix)
common/test/run-shutdown_scriptpubkey.c:109
↓ 1 callers
Function
test_invalid_witnessprogs
common/test/run-shutdown_scriptpubkey.c:158
↓ 1 callers
Function
test_invoice
common/test/run-param.c:641
↓ 1 callers
Function
test_json_bad_utf8
common/test/run-json.c:201
↓ 1 callers
Function
test_json_deep_nesting
common/test/run-json.c:229
↓ 1 callers
Function
test_json_escape
lightningd/test/run-jsonrpc.c:141
↓ 1 callers
Function
test_json_filter
lightningd/test/run-jsonrpc.c:95
↓ 1 callers
Function
test_json_out_add
ccan/ccan/json_out/test/run.c:6
↓ 1 callers
Function
test_json_partial
lightningd/test/run-jsonrpc.c:176
↓ 1 callers
Function
test_json_stream
Test that we can segment and parse a stream of json objects correctly. */
lightningd/test/run-jsonrpc.c:209
↓ 1 callers
Function
test_json_to_s64
common/test/run-json.c:287
↓ 1 callers
Function
test_json_to_u64
common/test/run-json.c:329
↓ 1 callers
Function
test_json_tok_bitcoin_amount
common/test/run-json.c:71
↓ 1 callers
Function
test_json_tok_millionths
common/test/run-json.c:97
↓ 1 callers
Function
test_json_tok_size
common/test/run-json.c:140
↓ 1 callers
Function
test_manip_columns
wallet/test/run-db.c:484
↓ 1 callers
Function
test_message_then_whitespace_then_message
common/test/run-jsonrpc_io.c:285
↓ 1 callers
Function
test_no_rate
No rate added yet -> returns NULL */
plugins/bkpr/test/run-currencyrate_str.c:440
↓ 1 callers
Function
test_non_shortest_form
ccan/ccan/utf8/test/run-decode.c:161
↓ 1 callers
Function
test_non_unicode
ccan/ccan/utf8/test/run-decode.c:202
↓ 1 callers
Function
test_null_msat
NULL msat: returns the rate for 1 BTC directly, no msat math */
plugins/bkpr/test/run-currencyrate_str.c:466
↓ 1 callers
Function
test_onchain_fee_chan_close
plugins/bkpr/test/run-recorder.c:781
↓ 1 callers
Function
test_onchain_fee_chan_open
plugins/bkpr/test/run-recorder.c:1046
↓ 1 callers
Function
test_onchain_fee_wallet_spend
plugins/bkpr/test/run-recorder.c:707
↓ 1 callers
Function
test_one_btc
1 BTC: should match the NULL-msat rate */
plugins/bkpr/test/run-currencyrate_str.c:476
↓ 1 callers
Function
test_overflow_msat_larger
Overflow: msat > rate. 2000 BTC = 2e14 msat. * 2e14 * 5e6 = 1e21 > u64_max, so we divide msat first: * (2e14 / 1e11) * 5e6 = 2000 * 5,000,000 = 1e1
plugins/bkpr/test/run-currencyrate_str.c:509
↓ 1 callers
Function
test_overflow_rate_larger
Overflow: rate > msat. Hypothetical 0-decimal currency at 5e12 units/BTC. * 20,000 sat = 2e7 msat; 2e7 * 5e12 = 1e20 > u64_max, so divide rate first
plugins/bkpr/test/run-currencyrate_str.c:521
↓ 1 callers
Function
test_parse_report_format_escaped_open_brace
plugins/bkpr/test/run-parse_report.c:96
↓ 1 callers
Function
test_parse_report_format_ifnotset_nested
{description:{txid:{outpoint:NONE}}} => nested if-not-set */
plugins/bkpr/test/run-parse_report.c:139
↓ 1 callers
Function
test_parse_report_format_ifnotset_simple
{description:NONE} => description, or NONE if absent */
plugins/bkpr/test/run-parse_report.c:117
↓ 1 callers
Function
test_parse_report_format_ifnotset_with_suffix
{description:{txid}X}Y => if-not-set with suffix */
plugins/bkpr/test/run-parse_report.c:175
↓ 1 callers
Function
test_parse_report_format_ifset_and_ifnotset
{credit?+{credit}:0} => if-set and if-not-set */
plugins/bkpr/test/run-parse_report.c:200
↓ 1 callers
Function
test_parse_report_format_simple
plugins/bkpr/test/run-parse_report.c:70
↓ 1 callers
Function
test_parse_report_format_unknown_nested_tag
plugins/bkpr/test/run-parse_report.c:263
← previous
next →
7,601–7,700 of 16,782, ranked by callers