ouroboros-network
ouroboros-network copied to clipboard
tx-submission decision logic for the inbound side
To smooth traffic and save bandwidth, we can add a decision logic to inbound tx-submission protocol which would decide from whom to download an available transaction and trace which transactions are being downloaded (so we don't start to download something that's already being downloaded).
todo list
- [ ] validate
txsize - [ ] validate that
txsize is smaller than maximum tx size - [ ] efficient adding
txsto mempool (do not try add the sametxtwice) Is this even needed? Mempool could checktxids before doing any expensive validation.