Don't check the entire chain every time.

With over 1700 blocks, this was taking a *lot* of CPU.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>