topLevel = SortedDict(neg) # 从大到小排序
for priority, Id in topLevel.items():
print("topLevel1", topLevel)
# # 将Id从topLevel中删除
topLevel.pop(priority)
print("topLevel2", self.Txpool.topLevel)
发现4000011: 11没有遍历就跳出了
修改后
tmp = [(k,v) for k,v in topLevel.items()]
print(len(tmp))
for priority, Id in tmp:
print("topLevel1", topLevel)
# # 将Id从topLevel中删除
topLevel.pop(priority)
print("topLevel2", self.Txpool.topLevel)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)