Maybe try:

```
val draftTrails = ...
val liveTrails = ...
```
Then build `newBlock`.

This will avoid the `var` and may read better by having all your ducks in a row before making `newBlock`.