pyquarkchain icon indicating copy to clipboard operation
pyquarkchain copied to clipboard

Fix chain mask list for slave-shard relationship

Open ninjaahhh opened this issue 5 years ago • 3 comments

as of now our config is still using chain mask list to configure shard-slave mapping:

    """ Represent a mask of chains, basically matches all the bits from the right until the leftmost bit is hit.
    E.g.,
    mask = 1, matches *
    mask = 0b10, matches *0
    mask = 0b101, matches *01
    """

however it doesn't fit our current chain/shard ID decoding. we should migrate the chain mask list to be a list of full shard IDs indicating exactly what shards a slave should run.

ninjaahhh avatar Feb 24 '20 22:02 ninjaahhh

@lyhe18 can you take this task?

ninjaahhh avatar Feb 25 '20 07:02 ninjaahhh

No problem~

lyhe18 avatar Feb 25 '20 07:02 lyhe18

This issue is linked to #831

lyhe18 avatar Mar 03 '20 21:03 lyhe18