Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction Not Found #1005

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
c68f770
Reddcoin Rebrand & github updates
Sep 23, 2014
58ffcf3
remove USD as viewing option for now.
Sep 24, 2014
56a7829
Changes to header info display
Sep 24, 2014
c60545e
Reddcoin logo, PoS block info
Sep 24, 2014
25097ec
read me update and header changes
Sep 25, 2014
84a9626
css updates
Sep 25, 2014
fdd1a5d
css update
Sep 25, 2014
b174ca2
More css changes
Sep 25, 2014
fd08c39
reddcoin logo css changes
Sep 25, 2014
433700d
changes to red logo display
Sep 25, 2014
0ee1962
css edits
Sep 25, 2014
1892c38
update dependencies
Sep 25, 2014
a8ab37d
Revert "update dependencies"
Sep 25, 2014
addf89b
Rebranding.
Sep 27, 2014
51ef605
Update phrases.
Sep 27, 2014
e948657
fixing header color and other minor css edits
agroff Sep 27, 2014
a3e93f6
fixing previous css issues
agroff Sep 27, 2014
1ae7a57
Removing some padding to create more space in top bar
agroff Sep 27, 2014
04379fa
reducing paddin in menu to gain some more space
agroff Sep 27, 2014
d2caa5d
Update title.
Sep 27, 2014
55f1530
Removing curreny dropdown from navigation bar
agroff Sep 27, 2014
c1a3ddc
Merge branch 'master' of github.com:reddcoin-project/reddsight
agroff Sep 27, 2014
70e8933
swap favicons
Sep 27, 2014
34c8779
css changes to match reddcoin.com
Sep 27, 2014
b2c4153
Make title start with 'Reddsight | '
Sep 27, 2014
9b4952e
hover and active links with teal bar underneath
Sep 27, 2014
1050a7a
Update README and packaging.
Sep 27, 2014
882742b
Skip empty coinbase and empty vout of coinstake.
Sep 29, 2014
5b2793b
Add Google Analytics and fix meta tags
reddcoin Oct 1, 2014
5d6f973
Add link to reddcoin.com
reddcoin Oct 2, 2014
a76a04c
Add Home button
reddcoin Oct 2, 2014
4d001e4
Remove # of connections from main header bar
Oct 8, 2014
2044319
Add API link
reddcoin Oct 8, 2014
48a6ce8
Let supply display properly.
Oct 8, 2014
f23226c
Merge pull request #2 from reddcoin-project/explorer
Oct 8, 2014
fb81a61
Remove empty/useless status fields
reddcoin Oct 26, 2014
1a7ff8e
Fixing CSS Bug in header on mobile
agroff Oct 26, 2014
e14c11b
Bump version.
Nov 21, 2014
7ce9587
add docker configuration
reddink Aug 3, 2020
364e390
Create all.yml
reddink Aug 3, 2020
c9360a4
add status badge
reddink Aug 3, 2020
124280c
update repository path
reddink Aug 3, 2020
c611167
add data path
reddink Aug 4, 2020
2acfd34
use docker network
reddink Aug 4, 2020
d48ef3f
use service name
reddink Aug 5, 2021
4ad99ba
expose correct port on dockerfile
reddink Aug 6, 2021
b6a472b
use more of the default values within the Dokerfile
reddink Aug 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: all

on:
push:
branches:
- master
jobs:
build-core:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
with:
ref: master
- name: Build Docker Image
run: docker build ./Docker/core --tag reddcoincore/reddcoind:latest
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Push Docker Image
run: docker push reddcoincore/reddcoind:latest

build-reddsight:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
with:
ref: master
- name: Build Docker Image
run: docker build ./Docker/reddsight --tag reddcoincore/insight:latest
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Push Docker Image
run: docker push reddcoincore/insight:latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ npm-debug.log
.nodemonignore

.DS_Store
.idea
public/lib/*
!public/lib/zeroclipboard/ZeroClipboard.swf
db/txs/*
Expand Down
Empty file added Docker/.reddcoin/.empty.txt
Empty file.
Empty file added Docker/.reddsight/.empty.txt
Empty file.
40 changes: 40 additions & 0 deletions Docker/core/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM ubuntu:18.04
LABEL maintainer="info@reddcoin.com"
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /root

RUN useradd -r reddcoin \
&& apt-get update -y \
&& apt-get install -y curl gnupg gosu \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV REDDCOIN_VERSION=3.10.2
ENV REDDCOIN_DATA=/home/reddcoin/.reddcoin
ENV PATH=/opt/reddcoin-${REDDCOIN_VERSION}/bin:$PATH

RUN mkdir -p ${REDDCOIN_DATA}

ENV RPC_DAEMON 1
ENV RPC_SERVER 1
ENV RPC_USERNAME rpcusername
ENV RPC_PASSWORD rpcpassword
ENV RPC_PORT 45443
ENV RPC_ALLOW_IP 0.0.0.0/0

RUN set -ex \
&& curl -SLO https://download.reddcoin.com/bin/reddcoin-core-${REDDCOIN_VERSION}/SHA256SUMS \
&& curl -SLO https://download.reddcoin.com/bin/reddcoin-core-${REDDCOIN_VERSION}/reddcoin-${REDDCOIN_VERSION}-linux64.tar.gz \
&& grep " reddcoin-${REDDCOIN_VERSION}-linux64.tar.gz\$" SHA256SUMS | sha256sum -c - \
&& tar -xzf *.tar.gz -C /opt \
&& rm *.tar.gz

COPY ./setup.sh /root
RUN chmod u+x /root/setup.sh

VOLUME ["/home/reddcoin/.reddcoin"]

EXPOSE 45443 45444

CMD [ "/root/setup.sh" ]
27 changes: 27 additions & 0 deletions Docker/core/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -ex
CONFIG_PATH="$REDDCOIN_DATA/reddcoin.conf"

if [ ! -f "$CONFIG_PATH" ]; then
echo "server=$RPC_SERVER" >> $CONFIG_PATH
echo "rpcuser=$RPC_USERNAME" >> $CONFIG_PATH
echo "rpcpassword=$RPC_PASSWORD" >> $CONFIG_PATH
echo "rpcport=$RPC_PORT" >> $CONFIG_PATH
echo "rpcallowip=$RPC_ALLOW_IP" >> $CONFIG_PATH
echo "printtoconsole=1" >> $CONFIG_PATH
fi

if [ -f "/root/bootstrap/bootstrap050120.zip" ]; then
if [ -d "$REDDCOIN_DATA/blocks" ]; then
echo "Skipping Bootstrap file cause of already existent blocks in $REDDCOIN_DATA"
else
cd "$REDDCOIN_DATA" && rm -rf blocks chainstate database
apt-get update && apt-get install -y unzip
unzip /root/bootstrap/bootstrap050120.zip -d $REDDCOIN_DATA
chown -R reddcoin "$REDDCOIN_DATA"
fi
fi

[ -f "$REDDCOIN_DATA/.lock" ] && rm -f $REDDCOIN_DATA/.lock

reddcoind -datadir="$REDDCOIN_DATA"
26 changes: 26 additions & 0 deletions Docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.6"
services:

reddcoin-reddcoind:
container_name: reddcoin-reddcoind
image: reddcoincore/reddcoind:latest
build: ./core
ports:
- "45443:45443"
- "45444:45444"
volumes:
- "./.reddcoin:/home/reddcoin/.reddcoin"

reddcoin-insight:
container_name: reddcoin-insight
image: reddcoincore/insight:latest
build: ./reddsight
ports:
- 3000:3000/tcp
environment:
- BITCOIND_HOST=reddcoin-reddcoind
- BITCOIND_DATADIR=/home/reddcoin/.reddcoin
volumes:
- "./.reddsight:/home/reddcoin/.reddsight"
- "./.reddcoin:/home/reddcoin/.reddcoin"

38 changes: 38 additions & 0 deletions Docker/reddsight/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM ubuntu:14.04
LABEL maintainer="info@reddcoin.com"
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /root

RUN apt-get update -y \
&& apt-get install -y git curl software-properties-common wget unzip \
&& apt-get install -y nodejs npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN npm config set ca ""
RUN npm install -g n
RUN n 0.10.48

COPY ./setup.sh /root
RUN chmod u+x /root/setup.sh

RUN git clone https://github.com/reddcoin-project/reddsight.git
WORKDIR /root/reddsight

RUN chown -R root:root /root/reddsight

RUN npm install winston@2.3.1
RUN npm install bignum@0.9.0
RUN npm install async@1.5.2
RUN npm install

ENV BITCOIND_HOST 127.0.0.1
ENV BITCOIND_USER rpcusername
ENV BITCOIND_PASS rpcpassword
ENV INSIGHT_NETWORK livenet
ENV NODE_ENV production

EXPOSE 3001/tcp

CMD [ "/root/setup.sh" ]
2 changes: 2 additions & 0 deletions Docker/reddsight/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
npm start
13 changes: 13 additions & 0 deletions Docker/tools/cleanup-docker-logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# Use ./cleanup-docker-logs.sh <container_name> to clean up the log file of the specified container.

CONTAINER_NAME=$1
if [ -z "$CONTAINER_NAME" ]
then
echo "ERROR: Please provide a container name!"
else
CONTAINER_ID=$(docker inspect ${CONTAINER_NAME} | grep -Po '"Id": "([^"])+"' | cut -c8-71)
[ -z "$CONTAINER_ID" ] && echo "ERROR: Could not find ${CONTAINER_NAME}!" && exit
truncate -s 0 $(docker inspect --format='{{.LogPath}}' ${CONTAINER_NAME})
echo "SUCCESS: Logs of ${CONTAINER_NAME} container have been cleared."
fi
58 changes: 30 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
# *insight*
![all](https://github.com/reddcoin-project/reddsight/workflows/all/badge.svg)
# *reddsight*

*insight* is an open-source bitcoin blockchain explorer with complete REST
and websocket APIs. Insight runs in NodeJS, uses AngularJS for the
front-end and LevelDB for storage.
*Reddsight* is an open-source Reddcoin blockchain explorer with complete REST and websocket APIs.
Reddsight runs in NodeJS, uses AngularJS for the front-end and LevelDB for storage.

Check some screenshots and more details at [insight's project homepage](http://insight.is/).
Check some screenshots and more details at [reddsight's project homepage](https://github.com/reddcoin-project/reddsight).

*Reddsight* project is now split in two repositories. One for the [API](https://github.com/reddcoin-project/reddsight-api)
and for the front-end. This repository is for the front-end, which will install the API as a NPM dependency.

*Insight* project is now splitted in two repositories. One for the [API](https://github.com/bitpay/insight-api) and for the front-end. This repository is for the front-end, which will install the API as a NPM dependency.

## Prerequisites

* **Node.js v0.10.x** - Download and Install [Node.js](http://www.nodejs.org/download/).

* **NPM** - Node.js package manager, should be automatically installed when you get node.js.
* **NPM** - Node.js package manager, should be automatically installed when you get Node.js.


## Quick Install
Check the Prerequisites section above before installing.

To install Insight, clone the main repository:
To install reddsight, clone the main repository:

$ git clone https://github.com/bitpay/insight.git && cd insight
$ git clone https://github.com/reddcoin-project/reddsight.git && cd reddsight

Install dependencies:

Expand All @@ -31,10 +34,10 @@ Check some screenshots and more details at [insight's project homepage](http://i

Then open a browser and go to:

http://localhost:3001
http://localhost:3000

If *insight* reports problems connecting to **bitcoind** please check the CONFIGURATION section of
[insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md). To set the
If *reddsight* reports problems connecting to **reddcoind** please check the CONFIGURATION section of
[reddsight-api README](https://github.com/reddcoin-project/reddsight-api/blob/master/README.md). To set the
environment variables run something like:

$ INSIGHT_NETWORK=livenet BITCOIND_USER=user BITCOIND_PASS=pass INSIGHT_PUBLIC_PATH=public npm start
Expand All @@ -43,17 +46,17 @@ Check some screenshots and more details at [insight's project homepage](http://i
Please note that the app will need to sync its internal database
with the blockchain state, which may take some time. You can check
sync progress from within the web interface. More details about that process
on [insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md).
on [reddsight-api README](https://github.com/reddcoin-project/reddsight-api/blob/master/README.md).


## Nginx Setup

To use Nginx as a reverse proxy for Insight, use the following base [configuration](https://gist.github.com/matiu/bdd5e55ff0ad90b54261)
To use Nginx as a reverse proxy for reddsight, use the following base [configuration](https://gist.github.com/matiu/bdd5e55ff0ad90b54261)


## Development

To run insight locally for development mode:
To run reddsight locally for development mode:

Install bower dependencies:

Expand All @@ -67,43 +70,42 @@ To compile and minify the web application's assets:
$ grunt compile
```

There is a convinent Gruntfile.js for automation during editing the code
There is a convenient Gruntfile.js for automation during editing the code

```
$ grunt
```

In case you are developing *reddsight* and *reddsight-api* together, you can do the following:

In case you are developing *insight* and *insight-api* toghether, you can do the following:

* Install insight and insight-api on the same path ($IROOT)
* Install reddsight and reddsight-api on the same path ($IROOT)

```
$ cd $IROOT/insight
$ cd $IROOT/reddsight
$ grunt
```

in other terminal:

```
$ cd $IROOT/insight-api
$ ln -s ../insight/public
$ cd $IROOT/reddsight-api
$ ln -s ../reddsight/public
$ INSIGHT_PUBLIC_PATH=public node insight.js
```


```
INSIGHT_PUBLIC_PATH=insight/public grunt
INSIGHT_PUBLIC_PATH=reddsight/public grunt
```

at insight-api's home path (edit the path according your setup).
at reddsight-api's home path (edit the path according your setup).

**also** in the insight-api path. (So you will have to grunt process running, one for insight and one for insight-api).
**also** in the reddsight-api path. (So you will have to grunt process running, one for reddsight and one for reddsight-api).


## Multilanguage support

insight use [angular-gettext](http://angular-gettext.rocketeer.be) for
reddsight use [angular-gettext](http://angular-gettext.rocketeer.be) for
multilanguage support.

To enable a text to be translated, add the ***translate*** directive to html tags. See more details [here](http://angular-gettext.rocketeer.be/dev-guide/annotate/). Then, run:
Expand All @@ -130,11 +132,11 @@ compile***.

## Note

For more details about the *insight API* configs and end-point, just go to [insight API github repository](https://github.com/bitpay/insight-api) or read the [documentation](https://github.com/bitpay/insight-api/blob/master/README.md)
For more details about the *reddsight-api* configs and end-point, just go to [reddsight-api github repository](https://github.com/reddcoin-project/reddsight-api) or read the [documentation](https://github.com/reddcoin-project/reddsight-api/blob/master/README.md)

## Contribute

Contributions and suggestions are welcomed at [insight github repository](https://github.com/bitpay/insight).
Contributions and suggestions are welcomed at [reddsight github repository](https://github.com/reddcoin-project/reddsight).


## License
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Insight",
"version": "0.0.1",
"name": "reddsight",
"version": "0.2.5",
"dependencies": {
"angular": "~1.2.13",
"angular-resource": "~1.2.13",
Expand Down
Loading