forked from freewil/bitcoin-testnet-box
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 704 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
BITCOINCLI=bitcoin-cli
B1_FLAGS=
B2_FLAGS=
B1=-datadir=nodes/1 $(B1_FLAGS)
B2=-datadir=nodes/2 $(B2_FLAGS)
BLOCKS=1
ADDRESS=
AMOUNT=
ACCOUNT=
generate:
$(BITCOINCLI) $(B1) generate $(BLOCKS)
getwalletinfo:
$(BITCOINCLI) $(B1) getwalletinfo
$(BITCOINCLI) $(B2) getwalletinfo
sendfrom1:
$(BITCOINCLI) $(B1) sendtoaddress $(ADDRESS) $(AMOUNT)
sendfrom2:
$(BITCOINCLI) $(B2) sendtoaddress $(ADDRESS) $(AMOUNT)
address1:
$(BITCOINCLI) $(B1) getnewaddress $(ACCOUNT)
address2:
$(BITCOINCLI) $(B2) getnewaddress $(ACCOUNT)
stop:
$(BITCOINCLI) $(B1) stop
$(BITCOINCLI) $(B2) stop
clean:
find nodes/1/regtest/* -not -name 'server.*' -delete
find nodes/2/regtest/* -not -name 'server.*' -delete