forked from jakm/btcutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
21 lines (17 loc) · 843 Bytes
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2013-2014 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package btcutil
const (
// SatoshiPerBitcent is the number of satoshi in one bitcoin cent.
SatoshiPerBitcent = 1e6
// SatoshiPerBitcoin is the number of satoshi in one bitcoin (1 BTC).
SatoshiPerBitcoin = 1e8
// MaxSatoshi is the maximum transaction amount allowed in satoshi.
// Theoretically Groestlcoin may have transactions up to 105M GRS (total
// supply), but this leads to integer overflows in grsutil/grsd codebase.
// We limit maximum transaction size to 90M GRS to workaround this. If
// transaction larger than 90M ever happens, it means that one entity
// controls more than 85% of total GRS supply and project failed anyway.
MaxSatoshi = 90e6 * SatoshiPerBitcoin
)