Skip to content

Commit 6f4aa27

Browse files
cburgdorfPeppece
authored andcommitted
Remove unused add_uncle API
1 parent 94e1237 commit 6f4aa27

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

eth/vm/forks/frontier/blocks.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Type,
55
)
66

7-
import rlp
87
from rlp.sedes import (
98
CountableList,
109
)
@@ -18,7 +17,6 @@
1817
Hash32,
1918
)
2019

21-
from eth_hash.auto import keccak
2220
from trie.exceptions import (
2321
MissingTrieNode,
2422
)
@@ -131,11 +129,3 @@ def from_header(cls, header: BlockHeaderAPI, chaindb: ChainDatabaseAPI) -> "Fron
131129
transactions=transactions,
132130
uncles=uncles,
133131
)
134-
135-
#
136-
# Execution API
137-
#
138-
def add_uncle(self, uncle: BlockHeaderAPI) -> "FrontierBlock":
139-
self.uncles += (uncle,)
140-
self.header.uncles_hash = keccak(rlp.encode(self.uncles))
141-
return self

newsfragments/1949.removal.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removed unused and broken ``add_uncle` API on ``FrontierBlock`` and
2+
consequentially on all other derived block classes.

0 commit comments

Comments
 (0)