Archive of the libbitcoin Slack #general channel.
14:22:51.160772 ERROR [node] Internal failure generating block locator for [185.107.80.146:8333] object does not exist(edited)
auto prv = hd_private(root_key, hd_private::testnet);//this works well and private key is correct and succed imported to node
auto pub = prv.to_public();//guess this is incorrect because it didnt give me valid testnet pub key
return ec_public(pub.point()).to_payment_address().encoded();//this is address formatingto_payment_address, you pass in a version. Try passing in either payment_address::testnet_p2kh or payment_address::testnet_p2sh (rather than use the default for mainnet).version 4 API, so you need to query a v4 server (i.e. you run one, as no public ones are known at this time).url = tcp://testnet2.libbitcoin.net:29091, you can run this:
./bx fetch-block -c bx.cfg.v4.testnet -t 1
block
{
bits 486604799
hash 00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206
merkle_root f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba
nonce 1924588547
previous_block_hash 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
time_stamp 1296688928
version 1
transactions
{
transaction
{
hash f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba
inputs
{
input
{
address_hash a2f76840287f14442f42551050c8700d8ad16481
previous_output
{
hash 0000000000000000000000000000000000000000000000000000000000000000
index 4294967295
}
script "[20e7494d] [7f] [2f503253482f]"
sequence 4294967295
}
}
lock_time 0
outputs
{
output
{
address_hash ee9103399bfb42a091a7b537bed4a8552e9611ca
script "[021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51] checksig"
value 5000000000
}
}
version 1
}
}
}