Match changes in libbitcoin and libwallet, update tests.