Check that the gills, innards, and any remaining blood in the cavity have been removed. Pat thoroughly dry with paper towels. Leave the fish whole if it fits your pan, or ask the fishmonger to cut it into two or three large sections, keeping the head and bones for the broth.
Heat the oil in a deep, wide pan over medium heat. Add the fish and cook for about 3–4 minutes on each side, until lightly golden. Let the first side brown before turning. Add the ginger and cook briefly until fragrant.
Carefully pour in enough boiling water to mostly cover the fish, and add the scallion knot. Return to a boil and maintain a steady, rolling boil for 8–10 minutes, adjusting the heat to prevent the pan from boiling over.
Gently slide in the tofu. Continue cooking over medium heat for 8–10 minutes, stirring as little as possible. Add the goji berries during the final 2 minutes. Before serving, check that the flesh at the thickest part is opaque throughout and flakes easily with a fork. If any part is still translucent, continue cooking until done.
Add the salt and optional white pepper, then adjust to taste. If the broth has reduced more than desired, add a little boiling water. Remove the scallion knot, garnish with chopped scallions if using, and serve.