Added updatedPendingLinks() method to resolve all promises
Building the array of pending links happens in submitnode()