mirror of
https://github.com/alexgo-io/libbrc20-indexer.git
synced 2026-01-12 22:43:25 +08:00
fixup init brc20
This commit is contained in:
@@ -422,9 +422,9 @@ func (copyDup *BRC20ModuleIndexer) cherryPickModuleData(base *BRC20ModuleIndexer
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (base *BRC20ModuleIndexer) DeepCopy() (copyDup *BRC20ModuleIndexer) {
|
func (base *BRC20ModuleIndexer) DeepCopy() (copyDup *BRC20ModuleIndexer) {
|
||||||
|
log.Printf("DeepCopy enter")
|
||||||
copyDup = &BRC20ModuleIndexer{}
|
copyDup = &BRC20ModuleIndexer{}
|
||||||
copyDup.initBRC20()
|
copyDup.Init()
|
||||||
copyDup.initModule()
|
|
||||||
|
|
||||||
copyDup.deepCopyBRC20Data(base)
|
copyDup.deepCopyBRC20Data(base)
|
||||||
copyDup.deepCopyModuleData(base)
|
copyDup.deepCopyModuleData(base)
|
||||||
@@ -432,9 +432,9 @@ func (base *BRC20ModuleIndexer) DeepCopy() (copyDup *BRC20ModuleIndexer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (base *BRC20ModuleIndexer) CherryPick(module string, pickUsersPkScript, pickTokensTick, pickPoolsPair map[string]bool) (copyDup *BRC20ModuleIndexer) {
|
func (base *BRC20ModuleIndexer) CherryPick(module string, pickUsersPkScript, pickTokensTick, pickPoolsPair map[string]bool) (copyDup *BRC20ModuleIndexer) {
|
||||||
|
log.Printf("CherryPick enter")
|
||||||
copyDup = &BRC20ModuleIndexer{}
|
copyDup = &BRC20ModuleIndexer{}
|
||||||
copyDup.initBRC20()
|
copyDup.Init()
|
||||||
copyDup.initModule()
|
|
||||||
|
|
||||||
moduleInfo, ok := base.ModulesInfoMap[module]
|
moduleInfo, ok := base.ModulesInfoMap[module]
|
||||||
if ok {
|
if ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user