stacks-network / sbtc

Repo containing sbtc
GNU General Public License v3.0
134 stars 2 forks source link

[Feature]: Block observer writing stacks block #212

Closed netrome closed 4 days ago

netrome commented 1 month ago

Context

The block observer currently only writes bitcoin blocks, and contains a placeholder function to write stacks blocks which we should implement.

Definition of done

The write_stacks_block method in the block observer is implemented and tested.

netrome commented 2 weeks ago

@djordon hey I realize I missed that #251 doesn't implement the write_stacks_block function in the block observer - although it does all the heavy lifting for the postgresql storage, so reopening this so we can do a follow-up PR to actually implement this in the block observer.

djordon commented 2 weeks ago

Oh right, good call. Should be easy to add in.

netrome commented 2 weeks ago

Oh right, good call. Should be easy to add in.

Yeah, and if it gets too nitty with the in-memory implementation and unit test we could push that as a follow-up.