Bitcoin Server

From Bitcoin Wiki
Jump to navigation Jump to search

Bitcoin Server (bs) is a console application that is included as part of libbitcoin-server. It implements a full node on the Bitcoin P2P network as well as a blockchain query service based on ZeroMQ.

Documentation and signed binaries for Linux, OSX and Windows are available on GitHub.

Example

$ bs
Using config file: "/usr/local/etc/libbitcoin/bs.cfg"
Press CTRL-C to stop server.
INFO [worker]: worker ready
INFO [database]: Mapping: "/blockchain/blocks_lookup"
INFO [database]: Mapping: "/blockchain/blocks_rows"
INFO [database]: Mapping: "/blockchain/spends"
INFO [database]: Mapping: "/blockchain/txs"
INFO [database]: Mapping: "/blockchain/history_lookup"
INFO [database]: Mapping: "/blockchain/history_rows"
INFO [database]: Mapping: "/blockchain/stealth_index"
INFO [database]: Mapping: "/blockchain/stealth_rows"
06:31:07.201970 FATAL [node] ================= Startup =================
06:31:07.213970 ERROR [node] ================= Startup =================
06:31:07.224971 INFO [node] ================= Startup =================
06:31:07.236972 INFO [session] Set start height (364855)
Server started.
06:31:07.925011 INFO [protocol] Connected to peer [88.103.255.166:8333] on slot [2] (1 total)
06:31:17.958585 INFO [protocol] Connected to peer [58.96.171.129:8333] on slot [0] (2 total)
06:31:22.770860 INFO [protocol] Connected to peer [82.69.121.229:8333] on slot [1] (3 total)
06:34:35.383877 INFO [poller] Block #364856 00000000000000001589e050ee0ffeefbf8b37780378fdd8af346e0a8bdec7aa
06:34:35.882906 INFO [poller] Block #364857 0000000000000000153080d858e282eb4deaee5147e4bf1644711d1dca8a7f8d
06:37:58.961521 INFO [poller] Block #364858 000000000000000008f22ea4b13b2e6d6c0a957f76edaff62de69e64dade09a5
06:45:17.251590 INFO [poller] Block #364859 000000000000000014555cf76ab1d82e9a3d529adf3559cc8ea5ce343b9a3d65
07:05:44.277772 INFO [poller] Block #364860 000000000000000010985bd204ca899fc8725d8e32896c76d41518ad6281d943
07:17:37.688576 INFO [poller] Block #364861 00000000000000000f62b25f4915ad89ef627cfedac15b133aa6f4f1457bd89c
07:45:43.767015 INFO [poller] Block #364862 00000000000000001542a48d1b2fce804be1c59d65c9d151da14b0fdbac9943a
07:45:45.081090 INFO [poller] Block #364863 00000000000000000e7bf292d46e24b8ec9fdc8c096672a76506077edf6e1417
07:48:52.000781 INFO [poller] Block #364864 0000000000000000078a32b267012a7d0b7aba50cdea76adecba28b1864e2489
07:51:24.524505 INFO [poller] Block #364865 000000000000000004af6f65907e8ff5a5d24d22775afd025cba3b78a89a1656
07:57:45.564299 INFO [network] Channel failure [88.103.255.166:8333] unable to reach remote host (boost code 121)
07:57:45.722308 INFO [protocol] Connected to peer [199.192.78.194:8333] on slot [2] (3 total)
07:58:22.055386 INFO [poller] Block #364866 0000000000000000082767768320cfdc92b04a8d605e95db3303d26c0a887f6d
08:11:32.129576 INFO [poller] Block #364867 000000000000000003051b58e27c0377bea22bc571a483fa60c7e8d8f8ff4010
08:35:22.331379 INFO [poller] Block #364868 000000000000000006909680acefb7ae751b9e6ccf007362dd6738331ad5b1b8
08:46:59.954280 INFO [poller] Block #364869 00000000000000000761ddfcabc066e809336659bb34ae9663df8e9fa86c500a
09:05:59.489458 INFO [poller] Block #364870 00000000000000000e5e6c456630aa7e00c783bea5b56f79c570e101bb6db4df
09:15:34.042321 INFO [poller] Block #364871 0000000000000000132c018cd5294fdd2a0a85732a7ab7ab9fffdd9279c07266
09:23:11.005458 INFO [poller] Block #364872 0000000000000000142d68039747b70bc5eca0113fc349d396679630b421bb40
09:30:55.710037 INFO [poller] Block #364873 00000000000000000a3b280dc91f6d9efee96d56af12a18b5702d6203e3332ab
09:34:13.029323 INFO [poller] Block #364874 000000000000000005c026fcd0b5eab2abab70d367f78f5e64d4dc565ebba394
10:07:04.751099 INFO [poller] Block #364875 00000000000000000226556b8e3a5a7336f28155a40a507ead0918230b8d29b5
...

See Also

References