mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
chore: make function comment match function name
Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
@@ -2282,7 +2282,7 @@ func (w *Worker) GetBlock(bid string, page int, txsOnPage int) (*Block, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// GetBlock returns paged data about block
|
||||
// GetBlockRaw returns paged data about block
|
||||
func (w *Worker) GetBlockRaw(bid string) (*BlockRaw, error) {
|
||||
hash := w.getBlockHashBlockID(bid)
|
||||
if hash == "" {
|
||||
|
||||
@@ -57,7 +57,7 @@ func (t *CurrencyRatesTicker) ConvertTokenToBase(value float64, token string) fl
|
||||
return 0
|
||||
}
|
||||
|
||||
// ConvertTokenToBase converts token value to toCurrency currency
|
||||
// ConvertToken converts token value to toCurrency currency
|
||||
func (t *CurrencyRatesTicker) ConvertToken(value float64, token string, toCurrency string) float64 {
|
||||
baseValue := t.ConvertTokenToBase(value, token)
|
||||
if baseValue > 0 {
|
||||
|
||||
Reference in New Issue
Block a user