Piers Shepperson

Results 74 issues of Piers Shepperson

We need to be able to delete any provider ([miner](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/miner.go#L138), [sharder](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/sharder.go#L158), blobber, validator or [athoriser](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/zcnsc/authorizer.go#L136)). Further we need to keep a record of deleted providers to prevent a deleted provider...

smart-contracts
post-mainnet

Depends on https://github.com/0chain/blobber/issues/476. https://github.com/0chain/0chain/pull/1453 added boolean toggles to [Storage allocation](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/storagesc/models.go#L660) to allow for upload, download, move, copy, rename and delete. https://github.com/0chain/blobber/issues/476 will implement this in the blobber and also return...

smart-contracts

Every so often a provider sends a heath check transaction. If the provider has not provided a health check in the required time it cannot take on any new commitments...

smart-contracts
Event database
post-mainnet

A provider should be able to deactivate itself. This can use common code associated with a new embedded object (Provider or ShutDownable) - For each provider type, miner, sharder, blobber,...

smart-contracts
post-mainnet

Create a shared package for 0chain objects that are shared between modules. Hopefully, this will stop issues like https://github.com/0chain/0chain/pull/521 from occurring. This is an extension of https://github.com/0chain/0chain/issues/516.

smart-contracts

Add a new cancellation charge An allocation should have the full cost of an allocation in its write pool at all times. When an allocation is cancelled, a percentage of...

mainnet
smart-contracts

[stakePool.Slash](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/storagesc/stakepool.go#L215) ```go if err := edbSlash.Emit(event.TagStakePoolReward, balances); err != nil { return 0, err } ``` This takes slash from rewards. This could result in negative rewards. The slash value...

bug
smart-contracts

We should remove[ StorageNode.Information](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/storagesc/models.go#L347) field. This information should only be kept in the event database.

smart-contracts

[AddMiner](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/miner.go#L54) calls `getMinerList` three times, and again [verifyMinerState](https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/miner.go#L314), from https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/miner.go#L62 and https://github.com/0chain/0chain/blob/staging/code/go/0chain.net/smartcontract/minersc/miner.go#L129 We should refactor these down to one.

bug
smart-contracts

We wish the option to not use all of a blobber's capacity. To facilitate this we need a new `sc.yaml` setting `max_staked_capactiy`. This will be a `float64` setting, when the...

mainnet
smart-contracts
post-mainnet