OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

【bug】state执行交易时,如过交易读写集中存在只读key,导致内存泄露。 #379

Closed godeamon closed 1 year ago

godeamon commented 1 year ago

https://github.com/OpenAtomFoundation/xupercore/blob/master/bcs/ledger/xledger/state/utxo/spin_lock.go#L50 此处代码中未从map中删除元素,如果只读key的交易多,最终会导致内存泄露。