Vote transactions continue to be sent when block-making is paused
I am running a 5 node cluster (followed instructions here for the most part). When I paused the Block Maker, I noticed a ton of transactions stacking up in the txpool. Here is the output of txpool.inspect.pending:
> txpool.inspect.pending
{
0x0638e1574728b6d862dd5d3a3e0942c3be47d996: {
0: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
1: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
10: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
11: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
12: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
13: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
14: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
15: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
16: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
17: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
18: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
19: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
2: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
20: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
21: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
22: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
23: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
24: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
25: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
26: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
27: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
28: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
29: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
3: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
30: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
31: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
32: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
33: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
34: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
35: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
36: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
37: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
38: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
39: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
4: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
40: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
41: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
42: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
43: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
44: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
45: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
46: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
47: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
48: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
49: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
5: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
50: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
51: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
52: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
53: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
54: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
55: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
56: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
57: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
58: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
59: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
6: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
60: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
61: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
62: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
63: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
64: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
65: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
66: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
7: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
8: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
9: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas"
},
0x0fbdc686b912d7722dc86510934589e0aaf3b55a: {
0: "0x0000000000000000000000000000000000000020: 0 wei + 91996 × 0 gas"
},
0x9186eb3d20cbd1f5f992a950d808c4495153abd5: {
0: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
1: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
10: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
11: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
12: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
13: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
14: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
15: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
16: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
17: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
18: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
19: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
2: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
20: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
21: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
22: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
23: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
24: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
25: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
26: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
27: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
28: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
29: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
3: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
30: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
31: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
32: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
33: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
34: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
35: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
36: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
37: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
38: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
39: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
4: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
40: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
41: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
42: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
43: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
44: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
45: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
46: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
47: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
48: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
49: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
5: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
50: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
51: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
52: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
53: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
54: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
55: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
56: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
57: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
58: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
59: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
6: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
60: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
61: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
62: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
63: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
64: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
65: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
66: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
67: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
68: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
69: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
7: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
70: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
71: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
72: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
8: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas",
9: "0x0000000000000000000000000000000000000020: 0 wei + 31355 × 0 gas"
}
}
Until this is responded to fully, just a note that these are all likely to be vote transactions given that they are for the voting contract at address 0x0000000000000000000000000000000000000020. Is the list continuing to grow whilst the maker is paused? (I assume you only have one maker and the chain is not progressing?)
Yes, this list is growing while the block maker is paused (I checked with eth.blockNumber just to be sure). And yes your assumptions are correct.
Thanks for raising this issue. I can confirm that these are indeed vote transactions that voters are casting for the last block that was made before the chain was 'paused'. This requires further investigation and we'll keep you posted on the outcome.
Unless i'm mistaken, all nodes run the block maker strategy- so will attempt to generate a block every time the deadline passes (random time between block min and max time). Looking at the logic in the select statement in quorum/block_voting.go, for the CreateBlock case (line262), it would seem a node will attempt to vote if block creation fails (line 274) - which is true for any node without a block maker key.
IMHO: Voting should only be attempted - if a block was successfully generated.
Im having the same issue here, the contracts gets deployed but the txs remains on the pool for registering it on the contract. @patrickmn any quick solution for it?
@AugustoL do you mind providing further details please? This seems like it might be a different issue but will need further info to investigate.
Please see https://github.com/jpmorganchase/quorum/issues/266