how to understand skipnode in ripple?

Technical questions about the Ripple API, the protocol, etc.

how to understand skipnode in ripple?

Postby csquan_2015 » Wed Apr 12, 2017 11:45 am

how to understand skipnode in ripple?
csquan_2015
 
Posts: 140
Joined: Tue May 24, 2016 10:10 am

Re: how to understand skipnode in ripple?

Postby JoelKatz » Thu Apr 13, 2017 12:56 am

Are you asking about the old implementation of getNodeFat? It was an ugly hack to keep a node from getting added twice. We had to add the node late in the loop because we didn't know at that point if the loop would repeat or not. But if the loop repeated, the node would wind up getting added a second time. So we set a "skipNode" flag indicating that we should skip adding that node, because we already added it. The logic was later changed to avoid this hackiness.
User avatar
JoelKatz
Ripple
Ripple
 
Posts: 1859
Joined: Sun Dec 23, 2012 3:45 pm
Location: Oakland, CA


Return to Developers

Who is online

Users browsing this forum: Bing [Bot] and 3 guests
cron