Archive of the libbitcoin Slack #general channel.
--with-build-libdir equal to the .../prefix/lib dir toward the bottom of this snippet, but libbitcoin tells me that it cannot find any boost installation >= 1.62.0.build/boost ├── 1.69.0 │ └── ios │ └── release │ ├── build │ │ ├── arm64 │ │ │ ├── libboost.a │ │ │ ├── libboost_atomic.a │ │ │ ├── libboost_chrono.a │ │ │ ├── libboost_date_time.a │ │ │ ├── libboost_exception.a │ │ │ ├── libboost_filesystem.a │ │ │ ├── libboost_program_options.a │ │ │ ├── libboost_random.a │ │ │ ├── libboost_system.a │ │ │ ├── libboost_thread.a │ │ │ ├── libboost_unit_test_framework.a │ │ │ └── obj │ │ ├── universal │ │ │ ├── libboost_atomic.a │ │ │ ├── libboost_chrono.a │ │ │ ├── libboost_date_time.a │ │ │ ├── libboost_exception.a │ │ │ ├── libboost_filesystem.a │ │ │ ├── libboost_program_options.a │ │ │ ├── libboost_random.a │ │ │ ├── libboost_system.a │ │ │ ├── libboost_thread.a │ │ │ └── libboost_unit_test_framework.a │ │ └── x86_64 │ │ ├── libboost.a │ │ ├── libboost_atomic.a │ │ ├── libboost_chrono.a │ │ ├── libboost_date_time.a │ │ ├── libboost_exception.a │ │ ├── libboost_filesystem.a │ │ ├── libboost_program_options.a │ │ ├── libboost_random.a │ │ ├── libboost_system.a │ │ ├── libboost_thread.afull file
sys/types.h, so i pointed the compiler flags to the new SDK places provided by Xcode, and then I get Architecture unsupported, although -arch arm64 and -arch x86_64 is passed at the respective right time.__arm64__ or __x86_64__ that is #if defined(__arm64__) etc in some header fileschecking for boostlib >= 1.62.0... configure: We could not detect the boost libraries (version 1.62 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation. configure: error: Boost 1.62.0 or later is required but was not found.
--with-boost=...libbitcoin-client]$ make
CXX examples/console/console-client.o
In file included from ./include/bitcoin/client.hpp:21,
from examples/console/client.hpp:26,
from examples/console/client.cpp:19:
./include/bitcoin/client/obelisk_client.hpp:72:76: error: 'compact_filter' in namespace 'libbitcoin::system::message' does not name a type
72 | typedef std::function<void(const system::code&, const system::message::compact_filter&)> compact_filter_handler;
| ^~~~~~~~~~~~~~
./include/bitcoin/client/obelisk_client.hpp:73:76: error: 'compact_filter_checkpoint' in namespace 'libbitcoin::system::message' does not name a type
73 | typedef std::function<void(const system::code&, const system::message::compact_filter_checkpoint&)> compact_filter_checkpoint_handler;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/bitcoin/client.hpp:21,
from examples/console/client.hpp:26,
from examples/console/client.cpp:19:
./include/bitcoin/client/obelisk_client.hpp:74:76: error: 'compact_filter_headers' in namespace 'libbitcoin::system::message' does not name a type
74 | typedef std::function<void(const system::code&, const system::message::compact_filter_headers&)> compact_filter_headers_handler;
| ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:938: examples/console/console-client.o] Error 1
$ ./examples/console/console Type "help" for supported instructions > connect tcp://mainnet.libbitcoin.net:9091 Connecting to tcp://mainnet.libbitcoin.net:9091 > history 1F2CaWdxuVH7yLEVgzGrqWAGPYJPH5DsHN Failed to retrieve history: object does not exist > ^C
bx address-to-key 1F2CaWdxuVH7yLEVgzGrqWAGPYJPH5DsHN a0f4387b2985f7dcad93e4851110d5d1198c4054be11dbc24410aa785230684e(edited)
$ BX_CONFIG=data/bx.cfg.testnet2 console/bx fetch-balance 1abf6c34c4370673aee3ce1c1e6c16de549cc6baa065ff3e4b23414b1dc2eca7
balance
{
key 1abf6c34c4370673aee3ce1c1e6c16de549cc6baa065ff3e4b23414b1dc2eca7
received 66930771
spent 0
}
$ BX_CONFIG=data/bx.cfg.testnet2 console/bx fetch-balance $(console/bx address-to-key n3GNqMveyvaPvUbH469vDRadqpJMPc84JA)
balance
{
key 1abf6c34c4370673aee3ce1c1e6c16de549cc6baa065ff3e4b23414b1dc2eca7
received 66930771
spent 0
}
$ examples/console/console Type "help" for supported instructions > connect tcp://testnet2.libbitcoin.net:29091 Connecting to tcp://testnet2.libbitcoin.net:29091
./configure --prefix=OSX_BUILD --schnorrsig --enable-tests, not seeing any --schnorrsig flag with the resulting ./autogen.sh created ./configure file.git clone https://github.com/libbitcoin/secp256k1.git
2. cd secp256k1/
3. git checkout schnorrsig
4. ./configure --prefix=/Users/Scott/Projects/LibBitcoin/secp256k1/OSX_BUILD --enable-module-schnorrsig --enable-tests --enable-experimental
5. make -j4
6. make install
7. find OSX_BUILD -type f -print
**
OSX_BUILD/include/secp256k1_schnorrsig.h
OSX_BUILD/include/secp256k1_preallocated.h
OSX_BUILD/include/secp256k1.h
OSX_BUILD/lib/libsecp256k1.a
OSX_BUILD/lib/pkgconfig/libsecp256k1.pc
OSX_BUILD/lib/libsecp256k1.la
OSX_BUILD/lib/libsecp256k1.0.dylib
**make tests. It returns immediately with the message above.--enable-experimental appears required: configure: error: schnorrsig module is experimental. Use --enable-experimental to allow.
input::address() and output::address() for the inputs and outputs of a transaction, even though they are not part of the serialized object. Is there a way to get these fields via the query service (e.g. blockchain.fetch_transaction)?address_hash on inputs and outputs?$ bs --initchain Error: unrecognised option 'bitcoin.subsidy_interval_blocks'
18:50:52.043565 ERROR [network] Error starting listener: success
13:35:36.808260 INFO [node] Header #605219 [0000000000000000000d29ace1a2e2692eaa6c3fa5035496b1f00748b6e6ffb6] 167.86.100.11:8333 32767 13:36:50.635847 INFO [network] Connected outbound channel [62.210.103.45:8333] (1) ^C13:38:26.887613 INFO [server] Stop signal detected (code: 2). 13:38:26.887700 INFO [server] Please wait while the server is stopping... ^C15:02:00.389663 INFO [server] Stop signal detected (code: 2). ^C15:02:00.762374 INFO [server] Stop signal detected (code: 2).
15:58:34.025820 INFO [node] Header #605233 [00000000000000000015379b28f1255afe6cc65f2bc1401ac6e382e2a38310fa] 10.1.10.200:8333 32767 16:02:27.185895 INFO [node] Block #465800 [0000000000000000007f4f0dbc933198ef0fe6bfba1f33ab651948c3db206bd9] 2928 txs 4425 ins 4 des 0 chk 990 dep (00) 139433 16:02:29.904059 INFO [node] Valid #465800 [0000000000000000007f4f0dbc933198ef0fe6bfba1f33ab651948c3db206bd9] 2928 txs 4425 ins 5 des 82 pop 0 acc 0 scr 516 can 12 con 0.000000 16:08:33.957971 INFO [network] Connected manual channel [10.1.10.200:8333] as [10.1.10.200:8333] (1) 16:09:00.449851 INFO [node] Block #465900 [000000000000000001b75b6efd5aaa81d2f7bd5265756a86a7375896d0336154] 1704 txs 4369 ins 3 des 0 chk 735 dep (00) 139333 16:09:02.600256 INFO [node] Valid #465900 [000000000000000001b75b6efd5aaa81d2f7bd5265756a86a7375896d0336154] 1704 txs 4369 ins 3 des 50 pop 0 acc 0 scr 430 can 9 con 0.000000 ^C16:14:30.622986 INFO [server] Stop signal detected (code: 2). 16:14:30.625098 INFO [server] Please wait while the server is stopping... 16:14:37.996370 INFO [node] Server stopped successfully. real 2196m14.487s user 3184m29.758s sys 2930m25.746s
crash because gdb was able to trap it at a random spot in boost code, but without gdb, it was just a never ending hang.$ ./examples/get_height/get_height tcp://mainnet.libbitcoin.net:9091 error: connection timed out
while (poller.wait(1000).contains(socket.id()))
stream.read(proxy);for (auto i = 0; i < unspent->size(); ++i)
{
const auto& [previous_output, key] = unspent->at(i);
const auto address = convert_key_to_address(key);
bcs::chain::script prevout_script =
bcs::chain::script::to_pay_key_hash_pattern(address.hash());
bcs::endorsement endorsement;
auto rc = bcs::chain::script::create_endorsement(endorsement,
key, prevout_script, tx, i, bcs::machine::sighash_algorithm::all);
}bcs::chain::script input_script;
input_script.from_operations(bcs::machine::operation::list({
bcs::machine::operation({ endorsement }),
bcs::machine::operation({ public_key.point() })
}));bcs::chain::script input_script({
{ endorsement },
bcs::machine::operation({
public_key.point().begin(), public_key.point().end() })
});bcs::chain::script input_script({
{ endorsement },
{ public_key.point().begin(), public_key.point().end() }});