You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something i've been consistently confused by since my first interaction w/ kaspa is the multiple conflicting reports of network difficulty. The value reported by kaspad via rpc is in the TH range, and does not match the value expected, as per documentation at https://en.bitcoin.it/wiki/Difficulty. It appears to be inflated by a factor of 2^31 (i.e. pow max / diff 1, or 2^255 / 0xffff * 2^208). For example, we currently see a reported diff of ~251T, while the expected value is more like 117K. Numerous web sites seem to have noticed this, and adjusted the diff themselves.
Digging through the code, I stumbled on the following line. It appears the reported diff is calculated by taking PowMax / target (PowMax being 2^255), rather than max target / target (max target being 0xffff * 2^208). This clearly results in the scaling of diff by a factor of 2^31 as I mentioned above. I can't quite make out if this is a bug, or i'm missing something and this was done on purpose.
Something i've been consistently confused by since my first interaction w/ kaspa is the multiple conflicting reports of network difficulty. The value reported by kaspad via rpc is in the TH range, and does not match the value expected, as per documentation at https://en.bitcoin.it/wiki/Difficulty. It appears to be inflated by a factor of 2^31 (i.e. pow max / diff 1, or 2^255 / 0xffff * 2^208). For example, we currently see a reported diff of ~251T, while the expected value is more like 117K. Numerous web sites seem to have noticed this, and adjusted the diff themselves.
Digging through the code, I stumbled on the following line. It appears the reported diff is calculated by taking PowMax / target (PowMax being 2^255), rather than max target / target (max target being 0xffff * 2^208). This clearly results in the scaling of diff by a factor of 2^31 as I mentioned above. I can't quite make out if this is a bug, or i'm missing something and this was done on purpose.
kaspad/app/rpc/rpccontext/verbosedata.go
Line 33 in d8350d6
The text was updated successfully, but these errors were encountered: