Specified data directory does not exist – but it does…

anyone ever had a similar issue where the directory exists but bitcoin-cli isn’t recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD?

Thank you!
aaronson

-Mac-mini:~ $ bitcoin-cli -regtest generate 1
Error reading configuration file: specified data directory "/Users/---/Library/Application\ Support/Bitcoin" does not exist.
-Mac-mini:~ $ cd /Users/---/Library/Application\ Support/Bitcoin
-Mac-mini:Bitcoin $ ls
banlist.dat bitcoind.pid    chainstate  db.log      peers.dat
bitcoin.conf    blocks      database    debug.log   wallet.dat

What is the meaning of “service bits” in Bitcoin?

// Note that of those which support the service bits prefix, most only support a subset of
// possible options.
// This is fine at runtime as we'll fall back to using them as a oneshot if they don't support the
// service bits we want, but we should get them updated to support all service bits wanted by any
// release ASAP to avoid it where possible.

Reference: https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L116

Private key only wallet for Bitcoin Core regtest

I’m running a private regtest network on GCP. I generated a list of 2000 vanity testnet addresses ordered sequentially from prefixes mooo1 to n2ooo with their respective pub/priv key pairs, and to prevent complications, I want to only have one private key for each node (change in outgoing transactions are sent to the original address). Because there’s no security concern in my setting (it’s just a performance test, no money or attacker is involved), I want to make each bitcoind instance only use a single private key for all transactions, and not generate new addresses through an HD wallet. This is because viewing transactions is much more streamlined. I can tell which node is sending bitcoins to which other node, and diagnose issues more easily. Is there an option in bitcoind to only use a single private key?

How do different implementations of the Bitcoin Cash client know which type of coin they’re processing?

TL;DR: Where in this code does the SV client figure out that it’s not processing an ABC blockchain?


This image prompted my question.

There are a couple different mutually incompatible (I am assuming anyway) implementations of the Bitcoin Cash cryptocurrency client software…

  1. Bitcoin Cash ABC
  2. Bitcon Cash SV

My question assumes that each implementation processes their respective transactions using similar but mutually-incompatible blockchain processing rules.

Is it normal to run a Bitcoin Cash SV client implementation in a Bitcoin Cash ABC network? And vise versa? How, then, does one implementation know that the network it is running in, is (in)compatible with its particular processing rules?

Smart Contract token

Ones tokens are issued by smart contracts on a existing blockchain, for example Bitcoin and distributed to the community, who and in wich currency the transaction fees will be realized ?

bitcoin core wallet transactions syncing

ill explain the steps i want figure out.

I have an empty bitcoin core wallet .

Step 1. I backup the wallet and go offline. 

Step 2. Someone send me a bitcoin to this wallet and i can see it(in balance).

Step 3 .Ill restore my bitcoin core wallet to the initial point..

What will happen then ?

I assume that ill start over with the blockchain from scratch, And
what will happen is that initially the balance will be 0 (since my
node is not yet aware of the transaction). So ill need to synchronize
up to the block where the transaction was included (this will take
some time). At that time the balance will be updated. After that the
synchronization will continue until it’s up-to-date with the head.

I’m trying to avoid making test this week because lake of time,
So if someone can help and know the exactly answer, i will be glad to be updated ASAP .

If not , ill update after testing if its working as i mentioned above.

CScript to CPubKey or derive CPubKey from CScript

Please can someone advise if it is possible to derive the CPubKey from a CSript object? Provided i get it up with an address before hand,

I can use numerous functions to attain all the info from the CPubKey using functions, but can you make a CPubKey from a CSript?

Or are they too much chalk and cheese?

Thank you,

EDIT:
Following the first answer I’ve tried the below to no joy. The script returns totally empty:

CScript scriptPubKey1;
CBitcoinAddress address("L4VPgtoBtuxsYMgyrRvQRadSV1Y139TDfd");
scriptPubKey1.SetDestination(address.Get());

CScript::const_iterator it = scriptPubKey1.begin(); // or specifically, the location of the pubkey in the CScript object
opcodetype opcode;
std::vector<unsigned char> data;
scriptPubKey1.GetOp(it, opcode, data); // data now contains the byte vector

CPubKey pubkey3 = CPubKey(data);