[#node-TxOrphanage-EraseForPeer]
= xref:node.adoc[node]::xref:node/TxOrphanage.adoc[TxOrphanage]::EraseForPeer
:relfileprefix: ../../
:mrdocs:

Maybe erase all orphans announced by a peer (eg, after that peer disconnects)&period; If an orphan has been announced by another peer, don&apos;t erase, just remove this peer from the list of announcers&period;

== Synopsis

Declared in `&lt;node&sol;txorphanage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
EraseForPeer(xref:NodeId-08.adoc[NodeId] peer) = 0;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| The peer whose orphans (or announcements) to remove&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
