Bitcoin Forum
July 23, 2024, 09:09:40 AM *
News: Help 1Dq create 15th anniversary forum artwork.
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / ZMQ raw block questions on: November 12, 2020, 10:27:27 PM
I have two questions regarding ZMQ raw block notifications:

1 - The default high watermark for bitcoin core is 1000. If I understand correctly this means that up to 1000 raw blocks can be stored in memory (send buffer), which could translate to approximately 2GB, if there is a subscriber who forgets to read the notifications. This may lead to a crash due to insufficient memory in many machines, so it would be safer to set it to 100 and that would still allow the notification subscriber to be ~14h late in reading them, correct?

2 - It seems like raw block notifications are not published twice for the same height. An issue was just published on the bitcoin repository, but there are no comments yet: https://github.com/bitcoin/bitcoin/issues/20376 . Is this expected behavior or a bug?
2  Bitcoin / Development & Technical Discussion / Electrumx not updating with mempool transactions on: August 17, 2020, 09:24:59 PM
I'm running a bitcoin full node (v0.20.0) with an electrumx server (version 1.13.0) on top and I noticed that electrumx sometimes is veryyy slow to update itself with new transactions. What I am doing is: create a new signed transaction, broadcast it, make a CPFP transaction and broadcast it too. Then, I try to see if electrumx can detect the child transaction by querying electrumx for the scriptPubKeys of the parent transaction and see if anything is spending it. Around 2/3 of the times, electrumx updates quickly and can detect the child transaction but around 1/3 of the times it takes many minutes, like 15 minutes for it to detect and answer this child transaction. I have done this experiment like 9 times. I don't see any issues with my bitcoin node, its mempool contains the child transaction and when I run

Code:
bitcoin-cli getrawmempool true | jq '."parent_txid"'

I see the child txid in the "spentby" field.


Here is my electrumx.conf configuration:

Code:
DB_DIRECTORY = /media/pedro/Portable_2TB/Bitcoin/electrumx/data
DAEMON_URL = http://user:***@127.0.0.1
COIN = "BitcoinSegwit"
NET = "mainnet"
ALLOW_ROOT=1

PEER_DISCOVERY= self
SERVICES = rpc://localhost:8000,tcp://localhost:50001

INITIAL_CONCURRENT=500
COST_SOFT_LIMIT=10000000
COST_HARD_LIMIT=10000000
BANDWIDTH_UNIT_COST=1


NOTE: my bitcoin node gives a weird answer to `bitcoin-cli getchaintips` but looks good otherwise. Here is the answer:

Code:
>bitcoin-cli getchaintips
[
  {
    "height": 644185,
    "hash": "00000000000000000002fc463486fa70cc80cecdb0ebdfd8f7e2f056cbeb929c",
    "branchlen": 0,
    "status": "active"
  },
  {
    "height": 638519,
    "hash": "00000000000000000011398b899fb881c61bd6e8670270fbc8e225c11fd95d26",
    "branchlen": 1,
    "status": "valid-fork"
  }
]

I tried restarting the node and running 'bitcoin-cli reconsiderblock 00000000000000000011398b899fb881c61bd6e8670270fbc8e225c11fd95d26' but it didn't solve, could this be related? It's working fine otherwise it seems.
3  Bitcoin / Development & Technical Discussion / Selfish full node for production? on: August 11, 2020, 08:21:09 PM
I am planning about launching a bandwidth-intensive service. My application will be running on a server with a full node, and I was wondering if I could disable peers from downloading historical blocks from my node to optimize the bandwidth for my application. Actually, stopping them from downloading any block from my node would also work Tongue

I know many of you will not like this idea because it's selfish, but I already run a second, sometimes third, node. I am aware of the "blocksonly" mode, but it's not an option as I need a mempool.
4  Bitcoin / Development & Technical Discussion / BIP numbering and status mess on: July 13, 2020, 01:13:48 PM
There is BIP 199 and then the next BIP number is 300. why? These BIP numbers seem so random.

Also, the status of the BIPs could seem a bit outdated, no? For example, BIP 174 says "proposed" but it should be "final", no? It has been merged about two years ago...

https://github.com/bitcoin/bips
5  Bitcoin / Development & Technical Discussion / Insure GUI - create a locked sweeping transaction for life insurance on: July 12, 2020, 09:12:36 PM
A cool project was posted in /r/bitcoin today: https://github.com/lacksfish/insure-gui (original post: https://www.reddit.com/r/Bitcoin/comments/hpyfjt/ive_built_a_tool_making_it_easy_to_inherit/)

It's an easy way to create a sweeping transaction from a Ledger device that is only valid no sooner than one year from the moment of creation (user can set this parameter). The application then creates a pdf which you can email to your heir.

The main disadvantage is that you have to move the funds to another address of yours to invalidate that sweeping transaction. Any similar projects like this existed before? Thoughts?
6  Bitcoin / Development & Technical Discussion / Questions about generic signmessage (BIP322) on: July 11, 2020, 07:45:44 PM
I have two questions regarding the generalization of message signing/verification that has until recently only been done with legacy addresses through the RPC commands signmessage/verifymessage.

1 - Why was it chosen to prepend the scriptPubKey (when not P2PKH) to the preimage? To me, this adds unnecessary complexity which will slow down the adoption of BIP 322 by bitcoin libraries.

2 - In https://bitcoinops.org/en/topics/generic-signmessage , it can be read "This means a signed message can be produced for any script or address that a wallet would be able to spend. Additionally, two or more wallets can cooperate to create a BIP322 signed message for multisig scripts.". Additionally, BIP322 states that in order to sign: (https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#signing) "Derive the private key privkey for the scriptPubKey". I just don't know how this is possible, it should be impossible to derive a private key from a scriptPubKey of a multisig for example. For a multisig there are a set of private and public keys of the owners, can there be a single private key of the whole multisig that can sign anything without the other's approval? And even if yes, how can the public key of this derived master multisig private key match the public key hash which is a hash of the locking script?
7  Bitcoin / Development & Technical Discussion / Hidden bitcoin core RPC commands on: July 01, 2020, 05:31:49 PM
Recently I learned about
Code:
bitcoin-cli reconsiderblock <block_hash>
, which saved me from having to start the synchronization from scratch (was getting constantly ERROR: AcceptBlockHeader: block 00.. is marked invalid and the blockheader had a invalid difficulty).

Does anybody know about other hidden RPC commands that are not listed under
Code:
bitcoin-cli help
?
8  Bitcoin / Bitcoin Discussion / Any instructions on how to get replay protection after the BTG fork? on: October 25, 2017, 06:14:07 PM
This article (https://bitcointechtalk.com/how-segwit2x-replay-protection-works-1a5e41767103) says it's possible to get replay protection by sending a small amount to a certain address. Source seems reliable although before the fork they went back and said it wouldn't work.

Is it possible to get replay protection by sending a small amount to a certain address (like a bitcoin eater or an address with a known private key)? If this small amount transferred is not replayed, does it protect the whole wallet?
9  Bitcoin / Bitcoin Discussion / Can someone help me understand why the transaction fees went down after Segwit? on: September 20, 2017, 04:36:32 PM
As can be seen here https://bitinfocharts.com/comparison/bitcoin-transactionfees.html , the transaction fees increased until 25th of August and then started decreasing. Why did this happen? How does Segwit do this?
10  Bitcoin / Bitcoin Discussion / When will the lightning network become operational? on: September 19, 2017, 11:42:25 PM
I hear about Segwit activation and Lightning network but when will we be able to start using the Lightning network?
11  Bitcoin / Bitcoin Discussion / What is the expected transaction fee (satoshi/byte) in the long-term? on: September 19, 2017, 09:21:49 PM
I can see in this graph (https://bitcoinfees.info/) that the transaction fee in satoshi/byte doubled in the past year. With the increase in price of bitcoin, the transaction fees increase... unless the transaction fees in satoshi/byte somehow decrease at a faster pace.

Is there any forecasts for this fee in the long term, is there any analysis or a consensus on the transaction fees in satoshi/byte?

By the way, is there any proof-of-work cryptocurrency that is designed to have a low transaction fee in the long term?
12  Bitcoin / Meetups / What is the expected transaction fee (satoshi/byte) in the long-term? on: September 19, 2017, 09:09:38 PM
I can see in this graph (https://bitcoinfees.info/) that the transaction fee in satoshi/byte doubled in the past year. With the increase in price of bitcoin, the transaction fees increase... unless the transaction fees in satoshi/byte somehow decrease at a faster pace.

Is there any forecasts for this fee in the long term, is there any analysis or a consensus on the transaction fees in satoshi/byte?

By the way, is there any proof-of-work cryptocurrency that is designed to have a low transaction fee in the long term?

EDIT: Ups... Wrong section, please delete.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!