aboutsummaryrefslogtreecommitdiffstats
path: root/core/rawdb/accessors_chain.go
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-11 17:43:52 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit7e6fbc77b8be3f2f0cc52f410b071a1e1fd28641 (patch)
tree8179e10b03d3b8638868ab75ea67fc4c517ca42b /core/rawdb/accessors_chain.go
parent22325afbf6dfd179f074018fab4866a0c56a3e6a (diff)
downloaddexon-7e6fbc77b8be3f2f0cc52f410b071a1e1fd28641.tar.gz
dexon-7e6fbc77b8be3f2f0cc52f410b071a1e1fd28641.tar.zst
dexon-7e6fbc77b8be3f2f0cc52f410b071a1e1fd28641.zip
app: new app test flow (#244)
Diffstat (limited to 'core/rawdb/accessors_chain.go')
-rw-r--r--core/rawdb/accessors_chain.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go
index 5e23bef8f..801ad9362 100644
--- a/core/rawdb/accessors_chain.go
+++ b/core/rawdb/accessors_chain.go
@@ -348,21 +348,6 @@ func WriteBlock(db DatabaseWriter, block *types.Block) {
WriteHeader(db, block.Header())
}
-// ReadLastRoundNumber get current round number.
-func ReadLastRoundNumber(db DatabaseReader) (uint64, error) {
- number, err := db.Get(lastRoundNum)
- if err != nil {
- return 0, err
- }
-
- return new(big.Int).SetBytes(number).Uint64(), nil
-}
-
-// WriteLastRoundNumber write current round number.
-func WriteLastRoundNumber(db DatabaseWriter, number uint64) error {
- return db.Put(lastRoundNum, new(big.Int).SetUint64(number).Bytes())
-}
-
// DeleteBlock removes all block data associated with a hash.
func DeleteBlock(db DatabaseDeleter, hash common.Hash, number uint64) {
DeleteReceipts(db, hash, number)