code stringlengths 3 6.57k |
|---|
backupwallet(tmpdir + "/hd.bak") |
dumpwallet(tmpdir + "/hd.dump") |
generate(101) |
range(num_hd_adds) |
getnewaddress() |
validateaddress(hd_add) |
assert_equal(hd_info["hdkeypath"], "m/0'/0'/"+str(i) |
assert_equal(hd_info["hdmasterkeyid"], masterkeyid) |
sendtoaddress(hd_add, 1) |
generate(1) |
sendtoaddress(non_hd_add, 1) |
generate(1) |
key (again) |
getrawchangeaddress() |
validateaddress(change_addr) |
assert_equal(change_addrV["hdkeypath"], "m/0'/1'/1'") |
self.sync_all() |
assert_equal(self.nodes[1].getbalance() |
self.log.info("Restore backup ...") |
self.stop_node(1) |
shutil.rmtree(os.path.join(tmpdir, "node1/regtest/blocks") |
shutil.rmtree(os.path.join(tmpdir, "node1/regtest/chainstate") |
shutil.copyfile(os.path.join(tmpdir, "hd.bak") |
os.path.join(tmpdir, "node1/regtest/wallets/wallet.dat") |
self.start_node(1) |
range(num_hd_adds) |
getnewaddress() |
validateaddress(hd_add_2) |
assert_equal(hd_info_2["hdkeypath"], "m/0'/0'/"+str(_) |
assert_equal(hd_info_2["hdmasterkeyid"], masterkeyid) |
assert_equal(hd_add, hd_add_2) |
connect_nodes_bi(self.nodes, 0, 1) |
self.sync_all() |
self.stop_node(1) |
self.start_node(1, extra_args=self.extra_args[1] + ['-rescan']) |
assert_equal(self.nodes[1].getbalance() |
self.stop_node(1) |
shutil.rmtree(os.path.join(tmpdir, "node1/regtest/blocks") |
shutil.rmtree(os.path.join(tmpdir, "node1/regtest/chainstate") |
shutil.copyfile(os.path.join(tmpdir, "hd.bak") |
os.path.join(tmpdir, "node1/regtest/wallet.dat") |
self.start_node(1, extra_args=self.extra_args[1]) |
connect_nodes_bi(self.nodes, 0, 1) |
self.sync_all() |
rescanblockchain(0, 1) |
assert_equal(out['start_height'], 0) |
assert_equal(out['stop_height'], 1) |
rescanblockchain() |
assert_equal(out['start_height'], 0) |
assert_equal(out['stop_height'], self.nodes[1].getblockcount() |
assert_equal(self.nodes[1].getbalance() |
sendtoaddress(self.nodes[0].getnewaddress() |
decoderawtransaction(self.nodes[1].gettransaction(txid) |
validateaddress(out['scriptPubKey']['addresses'][0]) |
assert_equal(keypath[0:7], "m/0'/1'") |
WalletHDTest() |
main () |
b2 (default, Oct 11 2016, 05:27:10) |
setlocale() |
localeconv() |
localeconv() |
setlocale(category, value=None) |
setlocale(integer,string=None) |
in (None, '', 'C') |
strcoll(a, b) |
strcoll(string,string) |
cmp(a, b) |
strxfrm(s) |
strxfrm(string) |
functools.wraps(_localeconv) |
localeconv() |
_localeconv() |
d.update(_override_localeconv) |
_grouping_intervals(grouping) |
ValueError('invalid grouping') |
_group(s, monetary=False) |
localeconv() |
return (s, 0) |
s.rstrip() |
len(stripped) |
_grouping_intervals(grouping) |
groups.append(s[-interval:]) |
groups.append(s) |
groups.reverse() |
thousands_sep.join(groups) |
len(thousands_sep) |
len(groups) |
_strip_padding(s, amount) |
len(s) |
re.compile('%(?:\\((?P<key>.*?) |
format(percent, value, grouping=False, monetary=False, *additional) |
specifier
(percent) |
_percent_re.match(percent) |
len(match.group() |
len(percent) |
ValueError('format() |
repr(percent) |
_format(percent, value, grouping, monetary, *additional) |
_format(percent, value, grouping=False, monetary=False, *additional) |
formatted.split('.') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.