-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.py
51 lines (46 loc) · 1.03 KB
/
script.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from core.nodes import *
from core.base import *
ic = indieChain()
b = Block(ic)
N = Node(ic)
W = Wallet(N, 1000)
u = [W.makePayment('b', 100), W.makePayment('c', 50)]
print('1st transaction')
W.finalizeTransaction(u)
print('self add 500')
W.selfAdd(500)
print('paying 900 to d')
W.finalizeTransaction([W.makePayment('d', 900)])
print('third transaction')
W.finalizeTransaction([W.makePayment('d', 200)])
N.addBlock()
#2
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#3
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#4
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#5
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#6
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#7
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#8
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#9
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#10
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()
#11
W.finalizeTransaction([W.makePayment('d', 2)])
N.addBlock()