# Antioch - Progress Update Q4 2020

**URL:** https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891
**Category:** Uncategorized
**Created:** [October 13, 2020, 12:09pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891 "2020-10-13T12:09:13Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [October 13, 2020, 12:09pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/1 "2020-10-13T12:09:13Z")

</div>

Just a quick update to cover the past couple of weeks.

Spent a bunch of time investigating and tracking down an issue related to `4.1.0` when syncing _from_ a `4.0.x` node against a more recent `4.1.0` node.

This was fixed here - [https://github.com/mimblewimble/grin/pull/3465](https://github.com/mimblewimble/grin/pull/3465)

Bugfix release here - [https://grin.mw/blog/2020/10/08/grin-node-411-released.html](https://grin.mw/blog/2020/10/08/grin-node-411-released.html)

I have also been working on reviewing @jaspervdm PRs related to PIBD.

Big one here - [https://github.com/mimblewimble/grin/pull/3453](https://github.com/mimblewimble/grin/pull/3453)

Also spent some time making progress toward improved “flexible peer filtering” - [https://github.com/mimblewimble/grin/pull/3458](https://github.com/mimblewimble/grin/pull/3458)  
We are going to want to be more flexible with selecting peers to sync from once we start supporting PIBD (alongside existing txhashset archive) and this is a step toward supporting this.

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [October 26, 2020, 2:50pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/2 "2020-10-26T14:50:25Z")

</div>

Quick update on the past couple of weeks.

Spent time reviewing and design/discussion with @jaspervdm around PIBD changes for HF4 -

> <https://github.com/mimblewimble/grin/pull/3453>

I think we are getting close to getting this initial work to a place where we can merge it.

“Flexible peer filtering” is in review and hoping to merge soon -

> <https://github.com/mimblewimble/grin/pull/3458>

Spent time looking into what would be required to rebuild our “prune list” when receiving PIBD segments. The “prune list” tracks pruned/compacted sections of the output and rangeproof PMMR structures. This “prune list” is critical for correct reads in to the hash and data files on disk to correctly calculate byte offsets to handle pruned data.

This culminated in a rework of our `append()` implementation on our `PruneList`. We not have consistent (also simpler and more efficient) logic for building/rebuilding/reading from disk.

This is also up for review and should be hopefully merged soon.

> <https://github.com/mimblewimble/grin/pull/3476>

* * *

Also took some time to investigate future support for FlyClient ([https://eprint.iacr.org/2019/226.pdf](https://eprint.iacr.org/2019/226.pdf)) as we wanted to make sure our proposed DAA changes ([https://github.com/mimblewimble/grin-rfcs/pull/61](https://github.com/mimblewimble/grin-rfcs/pull/61)) were compatible with FlyClient.

There are currently some open questions regarding our header MMR and what data we commit to in intermediate nodes.

> <https://github.com/mimblewimble/grin/issues/3479>
>
> FlyClient (revised Aug2020): https://eprint.iacr.org/2019/226.pdf
> To enable handling difficulty-based sampling, we need to make two adjustments. We need a data-structure
> which efficiently and securely...

We are hoping to hear back from Benedikt Bunz regarding this. I would like to avoid finding ourselves in a position where FlyClient support would necessitate a subsequent hardfork post HF4.

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [November 16, 2020, 11:50am UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/3 "2020-11-16T11:50:58Z")

</div>

Quick status update for the past couple of weeks -

Implementation of the “segmenter” for PIBD is ready to go -

> <https://github.com/mimblewimble/grin/pull/3482>

This is dependent on the work by @jaspervdm to build “segments” based on current PMMR state here that we spent time testing/reviewing -

> <https://github.com/mimblewimble/grin/pull/3453>

We believe have a solid approach now for extracting segments of chain state that can be requested and validated in parallel during PIBD.

One of the areas of my focus has been to ensure the provider of these segments can generate these efficiently with minimal cost. We take advantage of the append-only properties of our internal PMMR structures and cache a “snapshot” of the UTXO state for the current PIBD sync period (every 12 hours).

Also spent some time adjusting our default node capability flags to facilitate support of both the existing txhashset state sync and the new PIBD p2p messages. We will need to support both of these as we gradually transition across to PIBD post HF4.

> <https://github.com/mimblewimble/grin/pull/3484>

Finally I have spent some time reviewing and testing the “late locking” changes to wallet. This is likely to remain “experimental” for now and not enabled by default (enabled via cmd line flags). But this should give us some much need flexibility during tx creation, particularly with slatepack interaction.

> <https://github.com/mimblewimble/grin-wallet/pull/530>

---

<div class="post-metadata">

### Author: ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)
#### Post date: [November 16, 2020, 4:16pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/4 "2020-11-16T16:16:49Z")

</div>

> [@antioch](#):
>
> Also spent some time adjusting our default node capability flags to facilitate support of both the existing txhashset state sync and the new PIBD p2p messages. We will need to support both of these as we gradually transition across to PIBD post HF4.

Does this mean the new PIBD p2p messages will be enforced (old ones removed) post HF4? My understanding was that if the new p2p messages are ready come the HF, then we don’t have to support the old type of protocol messages forever.

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [November 16, 2020, 4:38pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/5 "2020-11-16T16:38:47Z")

</div>

Sorry - that was probably unnecessarily confusing. “Post HF4” as in _some_ time beyond HF4.  
We are going to support both message types for a while after HF4, likely several months.  
The transition to PIBD will be gradual and there is still much work involved.

We will not support the old txhashset messages forever, but they are not going away any time soon.

---

<div class="post-metadata">

### Author: ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)
#### Post date: [November 16, 2020, 5:21pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/6 "2020-11-16T17:21:47Z")

</div>

Thank you for clarifying.

> [@antioch](#):
>
> We are going to support both message types for a while after HF4, likely several months.

My question now is: How can this be achieved without a HF5? Support for both types will always have to be there moving forward, until we enforce the new messages with a hard fork, no?

---

<div class="post-metadata">

### Author: ![oryhp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/oryhp/32/2923_2.png) [@oryhp](https://forum.grin.mw/u/oryhp)
#### Post date: [November 16, 2020, 6:20pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/7 "2020-11-16T18:20:35Z")

</div>

Current IBD and PIBD are doing the exact same validation in the end, they just do it in a different way. There are no changes to validation rules or anything, PIBD just chops the history into smaller chunks so that we can validate small parts instead of one big one which is what the current IBD does. Even if we switched directly from IBD to PIBD, it would just mean that the PIBD and IBD nodes would not be able to bootstrap each other (because they wouldn’t understand the messages of the other node), the network would be fine though

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [November 17, 2020, 11:17am UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/8 "2020-11-17T11:17:49Z")

</div>

No hardfork required. This is simply support for varying p2p messages at the network level.

---

<div class="post-metadata">

### Author: ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)
#### Post date: [November 17, 2020, 2:56pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/9 "2020-11-17T14:56:53Z")

</div>

But if support for the old messages type is deprecated, then it old nodes are “kicked out” of the network. They can no longer communicate correctly. That sounds equivalent to a hard fork.

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [November 17, 2020, 3:03pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/10 "2020-11-17T15:03:05Z")

</div>

I’m not sure I follow.  
No nodes are being “kicked out”. The plan is to have a transition period where both existing IBD (txhashset archive) and new PIBD are supported. Eventually we plan to migrate to pure PIBD once the majority of nodes support it.  
In no case is this going to be equivalent to a hardfork.

---

<div class="post-metadata">

### Author: ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)
#### Post date: [November 17, 2020, 3:42pm UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/11 "2020-11-17T15:42:04Z")

</div>

Ok I think I understand now. Should have paid more attention to @oryhp’s comment earlier.  
Thank you both for explaining.

---

<div class="post-metadata">

### Author: ![antioch](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/antioch/32/45_2.png) [@antioch](https://forum.grin.mw/u/antioch)
#### Post date: [December 1, 2020, 11:25am UTC](https://forum.grin.mw/t/antioch-progress-update-q4-2020/7891/12 "2020-12-01T11:25:32Z")

</div>

Quick update:

Past couple of weeks I’ve been focused on getting `5.0.0` ready for release.  
Pleased to announce both grin node and wallet are tagged and released `5.0.0-beta.2`.  
There was a lot of juggling various PRs to get everything merged and ready to go.

- [https://github.com/mimblewimble/grin/releases/tag/v5.0.0-beta.2](https://github.com/mimblewimble/grin/releases/tag/v5.0.0-beta.2)
- [https://github.com/mimblewimble/grin-wallet/releases/tag/v5.0.0-beta.2](https://github.com/mimblewimble/grin-wallet/releases/tag/v5.0.0-beta.2)

### Release Notes

- [https://github.com/mimblewimble/grin/issues/3506](https://github.com/mimblewimble/grin/issues/3506)
- [https://github.com/mimblewimble/grin-wallet/issues/540](https://github.com/mimblewimble/grin-wallet/issues/540)
