Skip to content

Commit

Permalink
build: disable pebbledb on arm32 (#5682)
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy authored Aug 18, 2023
1 parent 8c8fe6a commit cdbd0f1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ledger/store/trackerdb/pebbledbdriver/pebbledriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU Affero General Public License
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.

//go:build !arm

package pebbledbdriver

import (
Expand Down
30 changes: 30 additions & 0 deletions ledger/store/trackerdb/pebbledbdriver/pebbledriver_arm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (C) 2019-2023 Algorand, Inc.
// This file is part of go-algorand
//
// go-algorand is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// go-algorand is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with go-algorand. If not, see <https://www.gnu.org/licenses/>.

// go:build arm
package pebbledbdriver

import (
"errors"

"github.com/algorand/go-algorand/config"
"github.com/algorand/go-algorand/ledger/store/trackerdb"
"github.com/algorand/go-algorand/logging"
)

func Open(dbdir string, inMem bool, proto config.ConsensusParams, log logging.Logger) (trackerdb.Store, error) {
return nil, errors.New("pebbledb storage backend not supported on arm32")
}

0 comments on commit cdbd0f1

Please sign in to comment.