mirror of
https://github.com/alexgo-io/libbrc20-indexer.git
synced 2026-01-12 16:53:11 +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) {
|
||||
log.Printf("DeepCopy enter")
|
||||
copyDup = &BRC20ModuleIndexer{}
|
||||
copyDup.initBRC20()
|
||||
copyDup.initModule()
|
||||
copyDup.Init()
|
||||
|
||||
copyDup.deepCopyBRC20Data(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) {
|
||||
log.Printf("CherryPick enter")
|
||||
copyDup = &BRC20ModuleIndexer{}
|
||||
copyDup.initBRC20()
|
||||
copyDup.initModule()
|
||||
copyDup.Init()
|
||||
|
||||
moduleInfo, ok := base.ModulesInfoMap[module]
|
||||
if ok {
|
||||
|
||||
Reference in New Issue
Block a user