0chain icon indicating copy to clipboard operation
0chain copied to clipboard

Load config from MPT on node starts and update on block finalization

Open peterlimg opened this issue 2 years ago • 1 comments

To avoid loading config from MPT every time when need to access the config info. Such as the code is called each time when selecting blobbers for blobber challenge generation and get config REST handler. https://github.com/0chain/0chain/blob/f858985cdc34c5ba14378afbe43fc26998c3149e/code/go/0chain.net/smartcontract/storagesc/handler.go#L669-L683

peterlimg avatar Jun 16 '22 05:06 peterlimg

https://github.com/0chain/0chain/pull/2090#issuecomment-1423050633

peterlimg avatar Feb 11 '23 05:02 peterlimg