Skip to content

Instantly share code, notes, and snippets.

Jonas Schnelli jonasschnelli

Block or report user

Report or block jonasschnelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8f6756da07a554901f16d83cd1de450a
lightning_gossipd: pending node_announcement 0101faa9feb1b7e8402f2743a342c9e7540fa026ec8731a6888c27aa20f75a595104293205c2757d5f84dd4bea9c689dd487e06d8455b84b77c16602ccac8b37cf4c00005cd81c7a0385d5c1767ee6448488f2d020974f8d238ed4c6e6ae1ce136db15f2a468fef1063399ff435f726f736500000000000000000000000000000000000000000000000000000007013cadec052607 malformed? (version v0.7.0-471-ge902d9a)
0x563d16495146 send_backtrace
common/daemon.c:40
0x563d16498f3c status_failed
common/status.c:192
0x563d16489867 process_pending_node_announcement
gossipd/routing.c:1315
0x563d1648ade0 routing_add_channel_update
gossipd/routing.c:1892
0x563d16485d46 gossip_store_load
View gist:f5b8a701375c280b65842f44e4f6c046
{
"size": 17489,
"bytes": 9119661,
"usage": 33586032,
"maxmempool": 300000000,
"mempoolminfee": 0.00001000,
"minrelaytxfee": 0.00001000,
"fee_histogram": {
"1": {
"sizes": 2091772,
View BIPoverhaul.mediawiki

  BIP: ???
  Layer: Peer Services
  Title: Version 2 Peer-to-Peer Message Transport Protocol
  Author: Jonas Schnelli <dev@jonasschnelli.ch>
  Status: Draft
  Type: Standards Track
  Created: 2019-03-08
  License: PD

View BIP32_hardened.mediawiki


  BIP&#58; ??? (tbr after sending to mailing list)
  Layer&#58; Applications
  Title&#58; BIP32 key&#45;path&#45;scheme for hot wallets
  Author&#58; Jonas Schnelli <dev@jonasschnelli.ch>
  Comments&#45;Summary&#58; No comments yet.
  Comments&#45;URI&#58; 
  Status&#58; Draft
  Type&#58; Standards Track
  Created&#58; 2018&#45;06&#45;28

View cipherseed_bip_xxxx.mediawiki


  BIP&#58; ??? (tbr after sending to mailing list)
  Layer&#58; Applications
  Title&#58; Cipherseed – encrypted wallet seed
  Author&#58; Jonas Schnelli <dev@jonasschnelli.ch>
  Comments&#45;Summary&#58; No comments yet.
  Comments&#45;URI&#58; 
  Status&#58; Draft
  Type&#58; Standards Track
  Created&#58; 2018&#45;06&#45;04

@jonasschnelli
jonasschnelli / dummy.c
Created Jun 3, 2018
Simple 4 char bech32 bruteforce
View dummy.c
char hrp[8];
char bech32_str[128] = "xp1qqqqqq8z4rsgv54z9a92yla4m2yrsqdlwdl7gn6qldvwkuh3zrg66z8ad2snf832tgaxcuv3kmwugzl5x8wtnkj2q3a03ky0kg8p7dvv4czpjqgvv4zgn";
int range[4] = {10, 15, 20, 36};
uint8_t dblcheck5[100] = {};
size_t dblcheck5_len = 0;
if (!bech32_decode(hrp, dblcheck5, &dblcheck5_len, bech32_str)) {
printf("bech32_decode fails: '%s'\n", bech32_str);
}
uint8_t dblcheck8[128] = {};
size_t dblcheck8_len = 0;
View bech32_keys.mediawiki


  BIP&#58; ??? (tbr after sending to mailing list)
  Layer&#58; Applications
  Title&#58; Bech32X encoded keys
  Author&#58; Jonas Schnelli <dev@jonasschnelli.ch>
  Comments&#45;Summary&#58; No comments yet.
  Comments&#45;URI&#58; 
  Status&#58; Draft
  Type&#58; Standards Track
  Created&#58; 2018&#45;06&#45;03

@jonasschnelli
jonasschnelli / resource_profiles.md
Last active Apr 12, 2018
Bitcoin Core resource profiles
View resource_profiles.md

Problem

Bitcoin Core has been designed to synchronise/verify as fast as possible. This is usually desirable, though, on systems where other applications require a reasonable amount of CPU time (ex. desktop systems) the CPU usage maximisation of Bitcoin Core may be intrusive. While it is possible to configure Bitcoin Core to use less resources, it cannot be changed during runtime which leads to unideal user experience.

Concept of profiles

Profiles could help improve the situation by allowing to change the resource consumption profile during runtime.

Ideally, profiles could be recommended configuration sets for different machine- and use-case-types while the detailed settings could be tweaked via a configuration file (user defined resource profiles).

You can’t perform that action at this time.