harmony-one / harmony

The core protocol of harmony
https://harmony.one
GNU Lesser General Public License v3.0
1.46k stars 286 forks source link

fix allowed txs to be able to handle multiple txs for same from address #4624

Closed GheisMohammadi closed 7 months ago

GheisMohammadi commented 7 months ago

Issue

The allowed transactions file could have multiple entries for the same "from" address. The current code only keeps the latest entry and ignores the previous ones. This PR addresses this issue by setting a map of allowed transactions to an array of transaction data, rather than a map of "from" to a single transaction data.