mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +00:00
coredb: tracking fixes (#2476)
This commit is contained in:
parent
70682cd4a8
commit
d07540766f
@ -670,7 +670,7 @@ proc slotFetch*(
|
|||||||
err(rc.error.toError $api)
|
err(rc.error.toError $api)
|
||||||
acc.ifTrackNewApi:
|
acc.ifTrackNewApi:
|
||||||
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
||||||
slot=slot.toStr, result
|
stoPath=stoPath.toStr, result
|
||||||
|
|
||||||
proc slotDelete*(
|
proc slotDelete*(
|
||||||
acc: CoreDbAccRef;
|
acc: CoreDbAccRef;
|
||||||
@ -691,7 +691,7 @@ proc slotDelete*(
|
|||||||
err(rc.error.toError $api)
|
err(rc.error.toError $api)
|
||||||
acc.ifTrackNewApi:
|
acc.ifTrackNewApi:
|
||||||
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
||||||
slot=slot.toStr, result
|
stoPath=stoPath.toStr, result
|
||||||
|
|
||||||
proc slotHasPath*(
|
proc slotHasPath*(
|
||||||
acc: CoreDbAccRef;
|
acc: CoreDbAccRef;
|
||||||
@ -708,7 +708,7 @@ proc slotHasPath*(
|
|||||||
err(rc.error.toError $api)
|
err(rc.error.toError $api)
|
||||||
acc.ifTrackNewApi:
|
acc.ifTrackNewApi:
|
||||||
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
||||||
slot=slot.toStr, result
|
stoPath=stoPath.toStr, result
|
||||||
|
|
||||||
proc slotMerge*(
|
proc slotMerge*(
|
||||||
acc: CoreDbAccRef;
|
acc: CoreDbAccRef;
|
||||||
@ -726,7 +726,7 @@ proc slotMerge*(
|
|||||||
err(rc.error.toError $api)
|
err(rc.error.toError $api)
|
||||||
acc.ifTrackNewApi:
|
acc.ifTrackNewApi:
|
||||||
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
debug newApiTxt, api, elapsed, accPath=accPath.toStr,
|
||||||
slot=slot.toStr, result
|
stoPath=stoPath.toStr, result
|
||||||
|
|
||||||
proc slotState*(
|
proc slotState*(
|
||||||
acc: CoreDbAccRef;
|
acc: CoreDbAccRef;
|
||||||
|
@ -123,7 +123,7 @@ func toStr*(w: openArray[byte]): string =
|
|||||||
func toStr*(w: set[CoreDbCaptFlags]): string =
|
func toStr*(w: set[CoreDbCaptFlags]): string =
|
||||||
"Flags[" & $w.len & "]"
|
"Flags[" & $w.len & "]"
|
||||||
|
|
||||||
proc toStr*(rc: CoreDbRc[int]): string =
|
proc toStr*(rc: CoreDbRc[int]|CoreDbRc[UInt256]): string =
|
||||||
if rc.isOk: "ok(" & $rc.value & ")" else: "err(" & rc.error.toStr & ")"
|
if rc.isOk: "ok(" & $rc.value & ")" else: "err(" & rc.error.toStr & ")"
|
||||||
|
|
||||||
proc toStr*(rc: CoreDbRc[bool]): string =
|
proc toStr*(rc: CoreDbRc[bool]): string =
|
||||||
@ -136,10 +136,7 @@ proc toStr*(rc: CoreDbRc[Blob]): string =
|
|||||||
if rc.isOk: "ok(Blob[" & $rc.value.len & "])"
|
if rc.isOk: "ok(Blob[" & $rc.value.len & "])"
|
||||||
else: "err(" & rc.error.toStr & ")"
|
else: "err(" & rc.error.toStr & ")"
|
||||||
|
|
||||||
proc toStr*(rc: CoreDbRc[Hash256]): string =
|
proc toStr*[T](rc: CoreDbRc[T]): string =
|
||||||
if rc.isOk: "ok(" & rc.value.toStr & ")" else: "err(" & rc.error.toStr & ")"
|
|
||||||
|
|
||||||
proc toStr*(rc: CoreDbRc[set[CoreDbCaptFlags]]): string =
|
|
||||||
if rc.isOk: "ok(" & rc.value.toStr & ")" else: "err(" & rc.error.toStr & ")"
|
if rc.isOk: "ok(" & rc.value.toStr & ")" else: "err(" & rc.error.toStr & ")"
|
||||||
|
|
||||||
proc toStr*(rc: CoreDbRc[Account]): string =
|
proc toStr*(rc: CoreDbRc[Account]): string =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user