seekia/internal/moderation/verifiedAddressDeposits/verifiedAddressDeposits.go

21 lines
974 B
Go

// verifiedAddressDeposits provides functions to retrieve cryptocurrency address deposits for blockchains which we are hosting locally
// We use trustedAddressDeposits for blockchains which we are not hosting
package verifiedAddressDeposits
// TODO: Build package
// It will require querying a local blockchain node and keeping track of deposits to addresses.
// Each deposit should have a time and an amount.
// All deposits within a block should be represented as 1 deposit.
// Each block will have an associated time which all hosts can agree upon.
// Deposit Time = Seekia Network Start Time + (BlockHeight - BlockHeightAtNetworkStartTime) * DurationOfBlockInSeconds)
// We should include the burned fee amount of each transaction as part of the deposit.
// Hosts should only provide information about confirmed deposits (a defined number of blocks)
func CheckIfCryptocurrencyNodeIsBeingHosted(cryptocurrencyName string)(bool, error){
//TODO
return false, nil
}